From 2060136e04d7ae0633ffa98d1c2cb1460d4f3e85 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 17 Nov 2009 23:25:47 +0000 Subject: [PATCH] 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 --- configs/stm3210e-eval/src/up_nsh.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/stm3210e-eval/src/up_nsh.c b/configs/stm3210e-eval/src/up_nsh.c index a64c0c4ac5..fe18f1c517 100755 --- a/configs/stm3210e-eval/src/up_nsh.c +++ b/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; }