mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
sdmmc_host/driver: Add module reset before enabling
This commit is contained in:
committed by
KonstantinKondrashov
parent
437228e947
commit
5c560e0cd1
@@ -222,6 +222,7 @@ esp_err_t sdmmc_host_init(void)
|
||||
return ESP_ERR_INVALID_STATE;
|
||||
}
|
||||
|
||||
periph_module_reset(PERIPH_SDMMC_MODULE);
|
||||
periph_module_enable(PERIPH_SDMMC_MODULE);
|
||||
|
||||
// Enable clock to peripheral. Use smallest divider first.
|
||||
|
Reference in New Issue
Block a user