summaryrefslogtreecommitdiff
path: root/board/oak/gpio.inc
diff options
context:
space:
mode:
Diffstat (limited to 'board/oak/gpio.inc')
-rw-r--r--board/oak/gpio.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/oak/gpio.inc b/board/oak/gpio.inc
index 5c5ebfd810..9bef78d8c1 100644
--- a/board/oak/gpio.inc
+++ b/board/oak/gpio.inc
@@ -5,7 +5,9 @@
* found in the LICENSE file.
*/
-/* Inputs with interrupt handlers are first for efficiency */
+/* Declare symbolic names for all the GPIOs that we care about.
+ * Note: Those with interrupt handlers must be declared first. */
+
GPIO_INT(AC_PRESENT, PIN(C, 6), GPIO_INT_BOTH, extpower_interrupt)
GPIO_INT(POWER_BUTTON_L, PIN(B, 5), GPIO_INT_BOTH | GPIO_PULL_UP, power_button_interrupt)
GPIO_INT(LID_OPEN, PIN(C, 13), GPIO_INT_BOTH, lid_interrupt) /* LID switch detection */