diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-07 16:16:14 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-07 16:16:14 +0000 |
commit | 6dc70a8453a1a2b5953330dcd688f2121ad62732 (patch) | |
tree | bd69ff2ca35e22e4dab755d224f0a7c9dd143940 /testhal/STM32 | |
parent | 7109dcee27d7fbfa77f1c9b16c934f6ca550f5d5 (diff) | |
download | ChibiOS-6dc70a8453a1a2b5953330dcd688f2121ad62732.tar.gz ChibiOS-6dc70a8453a1a2b5953330dcd688f2121ad62732.tar.bz2 ChibiOS-6dc70a8453a1a2b5953330dcd688f2121ad62732.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2924 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/SDIO/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testhal/STM32/SDIO/main.c b/testhal/STM32/SDIO/main.c index 44a294655..09fe82a9c 100644 --- a/testhal/STM32/SDIO/main.c +++ b/testhal/STM32/SDIO/main.c @@ -28,6 +28,8 @@ static const SDCConfig sdccfg = { 0
};
+static uint8_t buf[SDC_BLOCK_SIZE];
+
/*
* Application entry point.
*/
@@ -47,7 +49,9 @@ int main(void) { * Initializes the SDIO drivers.
*/
sdcStart(&SDCD1, &sdccfg);
- sdcConnect(&SDCD1);
+ if (!sdcConnect(&SDCD1)) {
+ sdcRead(&SDCD1, 0, buf, 1);
+ }
/*
* Normal main() thread activity.
|