From: Ivan Grokhotkov Date: Tue, 4 Jul 2017 04:50:22 +0000 (+0800) Subject: sdmmc: fix probing clock frequency X-Git-Tag: v3.1-dev~441^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b96771febac4791e37a95b30ba64676c5c14e22;p=esp-idf sdmmc: fix probing clock frequency Probing clock frequency should be 400kHz, not 4MHz. --- diff --git a/components/driver/include/driver/sdmmc_types.h b/components/driver/include/driver/sdmmc_types.h index dfbd2439c6..d9ffde3ffd 100644 --- a/components/driver/include/driver/sdmmc_types.h +++ b/components/driver/include/driver/sdmmc_types.h @@ -113,7 +113,7 @@ typedef struct { int max_freq_khz; /*!< max frequency supported by the host */ #define SDMMC_FREQ_DEFAULT 20000 /*!< SD/MMC Default speed (limited by clock divider) */ #define SDMMC_FREQ_HIGHSPEED 40000 /*!< SD High speed (limited by clock divider) */ -#define SDMMC_FREQ_PROBING 4000 /*!< SD/MMC probing speed */ +#define SDMMC_FREQ_PROBING 400 /*!< SD/MMC probing speed */ float io_voltage; /*!< I/O voltage used by the controller (voltage switching is not supported) */ esp_err_t (*init)(void); /*!< Host function to initialize the driver */ esp_err_t (*set_bus_width)(int slot, size_t width); /*!< host function to set bus width */