aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/SDIO/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/SDIO/main.c')
-rw-r--r--testhal/STM32/SDIO/main.c7
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();
}
/*