summaryrefslogtreecommitdiff
path: root/board/hadoken/gpio.inc
diff options
context:
space:
mode:
Diffstat (limited to 'board/hadoken/gpio.inc')
-rw-r--r--board/hadoken/gpio.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/hadoken/gpio.inc b/board/hadoken/gpio.inc
index eb8be3d3f4..33e6ab6a7a 100644
--- a/board/hadoken/gpio.inc
+++ b/board/hadoken/gpio.inc
@@ -5,11 +5,12 @@
* found in the LICENSE file.
*/
+/* Declare symbolic names for all the GPIOs that we care about.
+ * Note: Those with interrupt handlers must be declared first. */
+
#define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP | GPIO_INT_BOTH)
#define GPIO_KB_OUTPUT GPIO_ODR_HIGH
-/* Inputs with interrupt handlers are first for efficiency */
-
/* Keyboard inputs */
/*
* TODO(yjlou): call keyboard_raw_gpio_interrupt() in chip/nrf51/keyboard_raw.c