#include #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, } };