summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-02-07 15:29:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-02-07 15:29:37 +0000
commit9f77b1a93a1b5c96bea1c8f905344329f091e36b (patch)
tree7bb2f751bd8f3ca0a74b1ba50e247e47b5cf4e9b
parent15adeb9273b237f0168ef0d63b5304e7bcb95d02 (diff)
downloadnuttx-9f77b1a93a1b5c96bea1c8f905344329f091e36b.tar.gz
nuttx-9f77b1a93a1b5c96bea1c8f905344329f091e36b.tar.bz2
nuttx-9f77b1a93a1b5c96bea1c8f905344329f091e36b.zip
Need to set up SD card detect GPIO
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2537 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/configs/sam3u-ek/src/up_boot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/configs/sam3u-ek/src/up_boot.c b/nuttx/configs/sam3u-ek/src/up_boot.c
index 60e9856f8..4ae2699ed 100755
--- a/nuttx/configs/sam3u-ek/src/up_boot.c
+++ b/nuttx/configs/sam3u-ek/src/up_boot.c
@@ -99,4 +99,10 @@ void sam3u_boardinitialize(void)
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
#endif
+
+ /* Setup SD card detection PIO */
+
+#if CONFIG_SAM3U_HSMCI
+ sam3u_configgpio(GPIO_MCI_CD);
+#endif
}