summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-17 23:25:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-11-17 23:25:47 +0000
commiteb308862f72d775fa499b6f69013f84b573f3826 (patch)
tree8b66a822641fd5b1b5ae72279adc40e420aa0e69
parentab527065509e9710a274dfe0ea8f98e69e711ce0 (diff)
downloadnuttx-eb308862f72d775fa499b6f69013f84b573f3826.tar.gz
nuttx-eb308862f72d775fa499b6f69013f84b573f3826.tar.bz2
nuttx-eb308862f72d775fa499b6f69013f84b573f3826.zip
Need to tell SDIO that there is a card in the slot
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2269 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/configs/stm3210e-eval/src/up_nsh.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/configs/stm3210e-eval/src/up_nsh.c b/nuttx/configs/stm3210e-eval/src/up_nsh.c
index a64c0c4ac..fe18f1c51 100755
--- a/nuttx/configs/stm3210e-eval/src/up_nsh.c
+++ b/nuttx/configs/stm3210e-eval/src/up_nsh.c
@@ -201,6 +201,13 @@ int nsh_archinitialize(void)
return ret;
}
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 STM3210E-EVAL board supports a GPIO to detect if there is a card in
+ * the slot.
+ */
+
+ sdio_mediachange(sdio, TRUE);
#endif
return OK;
}