diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-08 09:08:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-08 09:08:46 +0000 |
commit | a02604be122fa2ebbe65a513fbb03abd2fdc8d78 (patch) | |
tree | 52d6043a5a257caa55b516b4f6fdd264409f44e6 /testhal | |
parent | 88d64d091d358cf8f1a3a30ed427b06588cc6323 (diff) | |
download | ChibiOS-a02604be122fa2ebbe65a513fbb03abd2fdc8d78.tar.gz ChibiOS-a02604be122fa2ebbe65a513fbb03abd2fdc8d78.tar.bz2 ChibiOS-a02604be122fa2ebbe65a513fbb03abd2fdc8d78.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2931 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/STM32/SDIO/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testhal/STM32/SDIO/main.c b/testhal/STM32/SDIO/main.c index 09fe82a9c..30859f6be 100644 --- a/testhal/STM32/SDIO/main.c +++ b/testhal/STM32/SDIO/main.c @@ -28,7 +28,7 @@ static const SDCConfig sdccfg = { 0
};
-static uint8_t buf[SDC_BLOCK_SIZE];
+static uint8_t buf[SDC_BLOCK_SIZE * 16];
/*
* Application entry point.
@@ -50,7 +50,10 @@ int main(void) { */
sdcStart(&SDCD1, &sdccfg);
if (!sdcConnect(&SDCD1)) {
- sdcRead(&SDCD1, 0, buf, 1);
+ int i;
+ for (i = 0; i < 1000; i++)
+ if (sdcRead(&SDCD1, 0, buf, 16))
+ chSysHalt();
}
/*
|