mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/fix_examples_sdmmc_card_init_failure_esp32s3_v4.4' into 'release/v4.4'
SDMMC example: Fix for 'sdmmc_card_init failed for ESP32S3' (v4.4) See merge request espressif/esp-idf!22653
This commit is contained in:
@@ -22,7 +22,8 @@ menu "SD/MMC Example Configuration"
|
|||||||
bool "1 line (D0)"
|
bool "1 line (D0)"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
if SOC_SDMMC_USE_GPIO_MATRIX
|
|
||||||
|
if IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
config EXAMPLE_PIN_CMD
|
config EXAMPLE_PIN_CMD
|
||||||
int "CMD GPIO number"
|
int "CMD GPIO number"
|
||||||
@@ -52,6 +53,6 @@ menu "SD/MMC Example Configuration"
|
|||||||
|
|
||||||
endif # EXAMPLE_SDMMC_BUS_WIDTH_4
|
endif # EXAMPLE_SDMMC_BUS_WIDTH_4
|
||||||
|
|
||||||
endif # SOC_SDMMC_USE_GPIO_MATRIX
|
endif # IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@@ -61,7 +61,7 @@ void app_main(void)
|
|||||||
|
|
||||||
// On chips where the GPIOs used for SD card can be configured, set them in
|
// On chips where the GPIOs used for SD card can be configured, set them in
|
||||||
// the slot_config structure:
|
// the slot_config structure:
|
||||||
#ifdef CONFIG_SOC_SDMMC_USE_GPIO_MATRIX
|
#ifdef CONFIG_IDF_TARGET_ESP32S3
|
||||||
slot_config.clk = CONFIG_EXAMPLE_PIN_CLK;
|
slot_config.clk = CONFIG_EXAMPLE_PIN_CLK;
|
||||||
slot_config.cmd = CONFIG_EXAMPLE_PIN_CMD;
|
slot_config.cmd = CONFIG_EXAMPLE_PIN_CMD;
|
||||||
slot_config.d0 = CONFIG_EXAMPLE_PIN_D0;
|
slot_config.d0 = CONFIG_EXAMPLE_PIN_D0;
|
||||||
@@ -70,7 +70,7 @@ void app_main(void)
|
|||||||
slot_config.d2 = CONFIG_EXAMPLE_PIN_D2;
|
slot_config.d2 = CONFIG_EXAMPLE_PIN_D2;
|
||||||
slot_config.d3 = CONFIG_EXAMPLE_PIN_D3;
|
slot_config.d3 = CONFIG_EXAMPLE_PIN_D3;
|
||||||
#endif // CONFIG_EXAMPLE_SDMMC_BUS_WIDTH_4
|
#endif // CONFIG_EXAMPLE_SDMMC_BUS_WIDTH_4
|
||||||
#endif // CONFIG_SOC_SDMMC_USE_GPIO_MATRIX
|
#endif // CONFIG_IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
// Enable internal pullups on enabled pins. The internal pullups
|
// Enable internal pullups on enabled pins. The internal pullups
|
||||||
// are insufficient however, please make sure 10k external pullups are
|
// are insufficient however, please make sure 10k external pullups are
|
||||||
|
Reference in New Issue
Block a user