diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-11 15:32:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-11 15:32:07 +0000 |
commit | 9f4e907eee7044467ff13b28230355ed7d85d195 (patch) | |
tree | b2c4a958b3d0cd9f8a7cb3944db111487021cedd /nuttx/configs/sam3u-ek/src/up_nsh.c | |
parent | 1ca794f2728207ce1320b07ed063aa54d2055dc7 (diff) | |
download | px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.tar.gz px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.tar.bz2 px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.zip |
Add MCI CD GPIO
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2585 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/sam3u-ek/src/up_nsh.c')
-rwxr-xr-x | nuttx/configs/sam3u-ek/src/up_nsh.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/configs/sam3u-ek/src/up_nsh.c b/nuttx/configs/sam3u-ek/src/up_nsh.c index c8370369c..ae1ecb673 100755 --- a/nuttx/configs/sam3u-ek/src/up_nsh.c +++ b/nuttx/configs/sam3u-ek/src/up_nsh.c @@ -49,6 +49,7 @@ #include <nuttx/mmcsd.h> #include "sam3u_internal.h" +#include "sam3uek_internal.h" #ifdef CONFIG_SAM3U_HSMCI @@ -154,12 +155,9 @@ int nsh_archinitialize(void) } message("nsh_archinitialize: Successfully bound SDIO to the MMC/SD driver\n"); - /* Then let's guess and say that there is a card in the slot. I need to check to - * see if the SAM3U-EK board supports a GPIO to detect if there is a card in - * the slot. - */ + /* Then inform the HSMCI driver if there is or is not a card in the slot. */ - sdio_mediachange(sdio, true); + sdio_mediachange(sdio, sam3u_cardinserted(0)); #endif return OK; } |