You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
698 B
50 lines
698 B
|
|
#include <stdint.h>
|
|
|
|
#define MAX_N_PORTS 3
|
|
#define MAX_PORT_PINS 15
|
|
#define MAX_N_PIN_ALT_FUNC 8
|
|
|
|
// TODO: correct mapping!
|
|
static const uint8_t altFunc_List[MAX_N_PORTS][MAX_PORT_PINS] = {
|
|
{ // PORT A
|
|
0b01110000,
|
|
0b11110000,
|
|
0b01110000,
|
|
0b01110000,
|
|
0b11111000,
|
|
0b11110000,
|
|
0b11110110,
|
|
0b11111110,
|
|
0b11111000,
|
|
0b01111100,
|
|
0b11111000,
|
|
0b11111100,
|
|
0b11111100,
|
|
0b11100000,
|
|
0b11000000,
|
|
0b11110100
|
|
},
|
|
{ // PORT B
|
|
|
|
},
|
|
{ // PORT F
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
0b00000000,
|
|
}
|
|
};
|