sdmmc: in/out phase adapted to esp32 and esp32s3

This commit is contained in:
Armando
2023-04-14 10:21:43 +08:00
parent e9badf51c7
commit 920ecff168
4 changed files with 42 additions and 6 deletions
@@ -56,6 +56,7 @@ void app_main(void)
// For setting a specific frequency, use host.max_freq_khz (range 400kHz - 52MHz for SDMMC)
// Example: for fixed frequency of 10MHz, use host.max_freq_khz = 10000;
sdmmc_host_t host = SDMMC_HOST_DEFAULT();
host.max_freq_khz = SDMMC_FREQ_52M;
// This initializes the slot without card detect (CD) and write protect (WP) signals.
// Other fields will be initialized to zero