-const unsigned char g_gpio_to_index[GPIO_INDEX_SIZE] = {
- 128, 128, 0, 1, 2, 3, 128, 128, 4, 5, 6, 7, 128, 128,
- 8, 9, 128, 128, 128, 128, 128, 128, 10, 11, 128, 128, 12, 13,
- 128, 128, 14, 15, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
- 128, 128, 16, 17, 18, 19, 20, 21, 22, 23, 128, 128, 128, 128,
- 128, 128, 128, 128, 24, 25, 128, 128, 128, 26, 27, 28, 29, 30,
- 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 128, 128,
- 128, 128, 43, 44, 45, 46, 128, 128, 128, 128, 128, 128, 128, 128,
+const unsigned char g_pin_gpio_to_index[GPIO_MAX_NUMBER+1] = {
+ 128, 128, 128, 128, 0, 1, 128, 128, 2, 3, 4, 5, 128, 128,
+ 6, 7, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 8, 9,
+ 128, 128, 10, 11, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
+ 128, 128, 12, 13, 14, 15, 16, 17, 128, 128, 128, 128, 128, 128,
+ 128, 128, 128, 128, 18, 19, 128, 128, 128, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 128, 128,
+ 128, 128, 37, 38, 39, 40, 128, 128, 128, 128, 128, 128, 128, 128,