stm32/sdcard: Use maximum speed SDMMC clock on F7 MCUs.

This will get the SDMMC clock up to 48MHz.
This commit is contained in:
Damien George 2018-02-01 15:17:18 +11:00
parent 467a5926bc
commit 72ca049de7

View File

@ -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;