summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-07 16:20:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-07 16:20:35 +0000
commit21de300584601f990c440757197097746fa40034 (patch)
treedb07761a3cee55d5c466a67261f0da23d73e8c96 /nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
parent6aaedb5fc741627830baa841728c504b62e047a6 (diff)
downloadpx4-nuttx-21de300584601f990c440757197097746fa40034.tar.gz
px4-nuttx-21de300584601f990c440757197097746fa40034.tar.bz2
px4-nuttx-21de300584601f990c440757197097746fa40034.zip
Add support for STM3210E-EVAL button interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3750 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval/src/stm3210e-internal.h')
-rwxr-xr-xnuttx/configs/stm3210e-eval/src/stm3210e-internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h b/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
index 79b3052ae..8634feab8 100755
--- a/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
+++ b/nuttx/configs/stm3210e-eval/src/stm3210e-internal.h
@@ -76,13 +76,17 @@
/* BUTTONS -- NOTE that some have EXTI interrupts configured */
+#define MIN_IRQBUTTON BUTTON_KEY
+#define MAX_IRQBUTTON JOYSTICK_UP
+#define NUM_IRQBUTTONS (JOYSTICK_UP - BUTTON_KEY + 1)
+
#define GPIO_BTN_WAKEUP (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
GPIO_PORTA|GPIO_PIN0)
#define GPIO_BTN_TAMPER (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
GPIO_PORTA|GPIO_PIN0)
#define GPIO_BTN_KEY (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
GPIO_EXTI|GPIO_PORTG|GPIO_PIN8)
-#define GPIO_JOY_KEY (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
+#define GPIO_JOY_SEL (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
GPIO_EXTI|GPIO_PORTG|GPIO_PIN7)
#define GPIO_JOY_DOWN (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\
GPIO_EXTI|GPIO_PORTD|GPIO_PIN3)