1.1 --- a/stage2/nanonote_gpio.c Wed Jul 12 15:46:53 2017 +0200
1.2 +++ b/stage2/nanonote_gpio.c Sun Jul 23 17:44:24 2017 +0200
1.3 @@ -19,20 +19,21 @@
1.4 * Boston, MA 02110-1301, USA
1.5 */
1.6
1.7 +#include "nanonote_gpio.h"
1.8 #include "nanonote.h"
1.9 #include <stdint.h>
1.10
1.11 -#define PIN(x) (3 * 32 + 18 + x)
1.12 +#define PIN(x) gpio_global_pin(3, 18 + x)
1.13
1.14 const uint8_t GPIO_KEYIN_ROW[GPIO_KEYIN_COUNT] = {
1.15 - 0, 1, 2, 3, 4, 5, 6, 7
1.16 + PIN(0), PIN(1), PIN(2), PIN(3), PIN(4), PIN(5), PIN(6), PIN(8)
1.17 };
1.18
1.19 #undef PIN
1.20 -#define PIN(x) (2 * 32 + 10 + x)
1.21 +#define PIN(x) gpio_global_pin(2, 10 + x)
1.22
1.23 const uint8_t GPIO_KEYOUT_COL[GPIO_KEYOUT_COUNT] = {
1.24 - PIN(0), PIN(1), PIN(2), PIN(3), PIN(4), PIN(5), PIN(6), PIN(8),
1.25 + PIN(0), PIN(1), PIN(2), PIN(3), PIN(4), PIN(5), PIN(6), PIN(7),
1.26 };
1.27
1.28 #undef PIN