summaryrefslogtreecommitdiff
path: root/src/cortexelf-v1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-02 16:37:42 -0700
committerKeith Packard <keithp@keithp.com>2017-04-02 16:37:42 -0700
commit1bc48b075f76bfef258f516549573429b24f284c (patch)
treeaa67f380b3358e84621846a4ac60b62f23367281 /src/cortexelf-v1/ao_pins.h
parent8284d3639cd24e2fa0faf1e35e7276ba35a24f8f (diff)
cortexelf-v1: Add buttons
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1/ao_pins.h')
-rw-r--r--src/cortexelf-v1/ao_pins.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cortexelf-v1/ao_pins.h b/src/cortexelf-v1/ao_pins.h
index e9c9deb3..d39f4022 100644
--- a/src/cortexelf-v1/ao_pins.h
+++ b/src/cortexelf-v1/ao_pins.h
@@ -125,4 +125,28 @@
#define AO_SDCARD_SPI_MISO_PIN 3
#define AO_SDCARD_SPI_MOSI_PIN 4
+/* Buttons */
+
+#define AO_EVENT 1
+
+#define AO_BUTTON_COUNT 4
+#define AO_BUTTON_MODE AO_EXTI_MODE_PULL_DOWN
+
+/* INPUT */
+#define AO_BUTTON_0_PORT (&stm_gpioc)
+#define AO_BUTTON_0 8
+
+/* MP */
+#define AO_BUTTON_1_PORT (&stm_gpioc)
+#define AO_BUTTON_1 9
+
+/* RUN */
+#define AO_BUTTON_2_PORT (&stm_gpioc)
+#define AO_BUTTON_2 10
+
+/* LOAD */
+#define AO_BUTTON_3_PORT (&stm_gpioc)
+#define AO_BUTTON_3 11
+
+
#endif /* _AO_PINS_H_ */