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-22 03:08:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-01-22 03:08:29 +0000
commit8765c895a02731e26a6eb7f883173db1bf959d34 (patch)
tree706b5d9a28b9c10e19614c17a291ab5c79c916c3 /nuttx/configs/sam3u-ek/src/sam3uek_internal.h
parentbb5d61e8e375cc88c61e973710186c94af501b7b (diff)
downloadpx4-nuttx-8765c895a02731e26a6eb7f883173db1bf959d34.tar.gz
px4-nuttx-8765c895a02731e26a6eb7f883173db1bf959d34.tar.bz2
px4-nuttx-8765c895a02731e26a6eb7f883173db1bf959d34.zip
Add serial and LED driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2519 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
index 9c13dc5f5..fde22f7d8 100755
--- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
+++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
@@ -51,10 +51,19 @@
/* SAM3U-EK GPIOs *******************************************************************/
+/* GPIO pin definitions *************************************************************/
+
/* LEDs */
+#define GPIO_LED0 (GPIO_OUTPUT|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_OUTPUT_CLEAR|GPIO_PIN0)
+#define GPIO_LED1 (GPIO_OUTPUT|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_OUTPUT_SET|GPIO_PIN1)
+#define GPIO_LED2 (GPIO_OUTPUT|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_OUTPUT_SET|GPIO_PIN2)
+
/* BUTTONS */
+#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)
+
/* SPI Chip Selects */
/************************************************************************************