diff options
| author | Damien George | 2018-02-01 15:17:18 +1100 |
|---|---|---|
| committer | Damien George | 2018-02-01 15:17:18 +1100 |
| commit | 72ca049de732dc6d8e30385517d835fa7d56e5e0 (patch) | |
| tree | 22a00e1b151fba3ac3bd25fe1756aa5ece651955 | |
| parent | 467a5926bc57549f36055938b8bbf7f9bf0dd101 (diff) | |
stm32/sdcard: Use maximum speed SDMMC clock on F7 MCUs.
This will get the SDMMC clock up to 48MHz.
| -rw-r--r-- | ports/stm32/sdcard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/sdcard.c b/ports/stm32/sdcard.c index b8a73daaf..9b087ef84 100644 --- a/ports/stm32/sdcard.c +++ b/ports/stm32/sdcard.c @@ -198,6 +198,10 @@ bool sdcard_power_on(void) { } // configure the SD bus width for wide operation + #if defined(MCU_SERIES_F7) + // use maximum SDMMC clock speed on F7 MCUs + sd_handle.Init.ClockBypass = SDMMC_CLOCK_BYPASS_ENABLE; + #endif if (HAL_SD_ConfigWideBusOperation(&sd_handle, SDIO_BUS_WIDE_4B) != HAL_OK) { HAL_SD_DeInit(&sd_handle); goto error; |
