]> granicus.if.org Git - esp-idf/commitdiff
sdmmc: fix probing clock frequency
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 4 Jul 2017 04:50:22 +0000 (12:50 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 20 Jul 2017 05:34:21 +0000 (13:34 +0800)
Probing clock frequency should be 400kHz, not 4MHz.

components/driver/include/driver/sdmmc_types.h

index dfbd2439c69ccf642be95b11cb927c4be7cd61ec..d9ffde3ffd408816ca679f09af26f26b3f227d2c 100644 (file)
@@ -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 */