summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-02-07 15:27:28 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-02-07 15:27:28 +0000
commit4c244d824045e3fb137b56b89f4b7bde1293ed91 (patch)
tree05ac28ebe828bcb4ca86b342e4e6618be600ec95
parentc9f28b71e3828cf6005a3055610b94ee9d32dc86 (diff)
downloadpx4-nuttx-4c244d824045e3fb137b56b89f4b7bde1293ed91.tar.gz
px4-nuttx-4c244d824045e3fb137b56b89f4b7bde1293ed91.tar.bz2
px4-nuttx-4c244d824045e3fb137b56b89f4b7bde1293ed91.zip
Move chip select GPIO to board-specific
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2535 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/arch/arm/src/sam3u/sam3u_internal.h1
-rwxr-xr-xnuttx/configs/sam3u-ek/src/sam3uek_internal.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_internal.h b/nuttx/arch/arm/src/sam3u/sam3u_internal.h
index 440bcfece..5cbb9c0fd 100755
--- a/nuttx/arch/arm/src/sam3u/sam3u_internal.h
+++ b/nuttx/arch/arm/src/sam3u/sam3u_internal.h
@@ -231,7 +231,6 @@
#define GPIO_MCI_DAT7 (GPIO_PERIPHA|GPIO_CFG_PULLUP|GPIO_PORT_PIOB|GPIO_PIN31)
#define GPIO_MCI_CK (GPIO_PERIPHA|GPIO_CFG_DEFAULT|GPIO_PORT_PIOA|GPIO_PIN3)
#define GPIO_MCI_DA (GPIO_PERIPHA|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN4)
-#define GPIO_MCI_CD (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|{AT91C_PIO_PA25)
#define GPIO_PWMC_PWMH0 (GPIO_PERIPHA|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_PIN0)
#define GPIO_PWMC_PWML0 (GPIO_PERIPHB|GPIO_CFG_DEFAULT|GPIO_PORT_PIOA|GPIO_PIN7)
diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
index 0e816204b..21f57adfb 100755
--- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
+++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h
@@ -65,6 +65,11 @@
#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)
+/* SD Card Detect */
+
+#define GPIO_MCI_CD (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN25)
+
+
#define IRQ_BUTTON1 SAM3U_IRQ_PA18
#define IRQ_BUTTON2 SAM3U_IRQ_PA19