stage2/minipc_gpio.h | raw changeset files shortlog |
1.1 --- a/stage2/minipc_gpio.h Wed Jul 12 15:46:53 2017 +0200 1.2 +++ b/stage2/minipc_gpio.h Sun Jul 23 17:44:24 2017 +0200 1.3 @@ -26,6 +26,8 @@ 1.4 1.5 #include <stdint.h> 1.6 1.7 +#define gpio_global_pin(port, pin) (port * 32 + pin) 1.8 + 1.9 extern const uint8_t GPIO_KEYIN_ROW[GPIO_KEYIN_COUNT]; 1.10 extern const uint8_t GPIO_KEYOUT_COL[GPIO_KEYOUT_COUNT]; 1.11