stage2/minipc_gpio.c | raw changeset files shortlog |
1.1 --- a/stage2/minipc_gpio.c Wed Jul 12 15:46:53 2017 +0200 1.2 +++ b/stage2/minipc_gpio.c Sun Jul 23 17:44:24 2017 +0200 1.3 @@ -19,10 +19,11 @@ 1.4 * Boston, MA 02110-1301, USA 1.5 */ 1.6 1.7 +#include "minipc_gpio.h" 1.8 #include "minipc.h" 1.9 #include <stdint.h> 1.10 1.11 -#define PIN(x) (3 * 32 + x) 1.12 +#define PIN(x) gpio_global_pin(3, x) 1.13 1.14 const uint8_t GPIO_KEYIN_ROW[GPIO_KEYIN_COUNT] = { 1.15 0, 1, 2, 3, 4, 5, 6, 7 /* if jz_keypad.c is understood correctly */