diff options
Diffstat (limited to 'testhal/STM32/SDIO/main.c')
-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.
|