diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-02-07 15:29:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-02-07 15:29:37 +0000 |
commit | 9f77b1a93a1b5c96bea1c8f905344329f091e36b (patch) | |
tree | 7bb2f751bd8f3ca0a74b1ba50e247e47b5cf4e9b /nuttx/configs/sam3u-ek/src | |
parent | 15adeb9273b237f0168ef0d63b5304e7bcb95d02 (diff) | |
download | px4-nuttx-9f77b1a93a1b5c96bea1c8f905344329f091e36b.tar.gz px4-nuttx-9f77b1a93a1b5c96bea1c8f905344329f091e36b.tar.bz2 px4-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
Diffstat (limited to 'nuttx/configs/sam3u-ek/src')
-rwxr-xr-x | nuttx/configs/sam3u-ek/src/up_boot.c | 6 |
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
}
|