Other Parts Discussed in Thread: CC2640R2F
Hi,
I am referring tho the Bluetooth Smart Keyboard Reference Design from this link. http://www.ti.com/tool/TIDC-BLUETOOTH-SMART-KEYBOARD-MODULE
It has a tool to generate code files. So far I understand how the code works. But, I am not clear how the inPinId2inPinIndex[] array was made. Can the reference to how the inPinId2inPinIndex[] was made be found in one of the technical reference documents? Is it possible to get the code for the code file generator so I know how the array was made? Also, I ported the codes to work for CC2640R2F Launchpad, I would like to know if the array is still applicable to work for CC2640R2F MCU? I have wired a USB Keyboard to CC2640R2F Launchpad to work as BLE HID Keyboard.
// Mapping of Pin Index to Input Pin(Coloumn GPIO) // Reverse mapping of gInputPinMap // Invalid Input Pin Index(for pins used as output) are represented as BOARD_INPUTCOUNT. static const uint8_t inPinId2inPinIndex[MAX_NUM_PINS] = { BOARD_INPUTCOUNT, BOARD_INPUT1, BOARD_INPUT4, BOARD_INPUT6, BOARD_INPUTCOUNT, BOARD_INPUT0, BOARD_INPUTCOUNT, BOARD_INPUTCOUNT, BOARD_INPUT15, BOARD_INPUT14, BOARD_INPUTCOUNT, BOARD_INPUT11, BOARD_INPUT9, BOARD_INPUT16, BOARD_INPUT17, BOARD_INPUTCOUNT, BOARD_INPUTCOUNT, BOARD_INPUTCOUNT, BOARD_INPUT13, BOARD_INPUT12, BOARD_INPUT10, BOARD_INPUTCOUNT, BOARD_INPUT2, BOARD_INPUT8, BOARD_INPUTCOUNT, BOARD_INPUT7, BOARD_INPUT5, BOARD_INPUT3, BOARD_INPUTCOUNT, BOARD_INPUTCOUNT, BOARD_INPUTCOUNT };
-kel