summaryrefslogtreecommitdiff
path: root/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-01-23 03:05:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-01-23 03:05:05 +0000
commit82c299159a50c72fc530abbd2210f084b5bcd938 (patch)
treef9169bd45dc5766382e6f0fd9efb63e7ca027e93 /nuttx/configs/sam3u-ek/src/sam3uek_internal.h
parentdfddbfc5b48b54ccfdc5a6a6d096898a6ffdd027 (diff)
downloadpx4-nuttx-82c299159a50c72fc530abbd2210f084b5bcd938.tar.gz
px4-nuttx-82c299159a50c72fc530abbd2210f084b5bcd938.tar.bz2
px4-nuttx-82c299159a50c72fc530abbd2210f084b5bcd938.zip
Misc fixes, add button support, GPIO interrupt support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2523 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/sam3u-ek/src/sam3uek_internal.h')
-rwxr-xr-xnuttx/configs/sam3u-ek/src/sam3uek_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
index fde22f7d8..0e816204b 100755
--- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
+++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
@@ -43,6 +43,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
+#include <nuttx/irq.h>
#include <stdint.h>
/************************************************************************************
@@ -64,6 +65,9 @@
#define GPIO_BUTTON1 (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_CFG_DEGLITCH|GPIO_PORT_PIOA|GPIO_PIN18)
#define GPIO_BUTTON2 (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_CFG_DEGLITCH|GPIO_PORT_PIOA|GPIO_PIN19)
+#define IRQ_BUTTON1 SAM3U_IRQ_PA18
+#define IRQ_BUTTON2 SAM3U_IRQ_PA19
+
/* SPI Chip Selects */
/************************************************************************************