2022-02-08 12:14:47 -05:00
|
|
|
menu "SD SPI Example Configuration"
|
2020-03-30 10:26:21 -04:00
|
|
|
|
|
|
|
config EXAMPLE_FORMAT_IF_MOUNT_FAILED
|
|
|
|
bool "Format the card if mount failed"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If this config item is set, format_if_mount_failed will be set to true and the card will be formatted if
|
|
|
|
the mount has failed.
|
2022-02-08 12:14:47 -05:00
|
|
|
|
2024-02-07 07:40:40 -05:00
|
|
|
config EXAMPLE_FORMAT_SD_CARD
|
|
|
|
bool "Format the card as a part of the example"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If this config item is set, the card will be formatted as a part of the example.
|
|
|
|
|
2022-02-08 12:14:47 -05:00
|
|
|
config EXAMPLE_PIN_MOSI
|
|
|
|
int "MOSI GPIO number"
|
|
|
|
default 15 if IDF_TARGET_ESP32
|
|
|
|
default 35 if IDF_TARGET_ESP32S2
|
2024-08-12 04:58:18 -04:00
|
|
|
default 4 if IDF_TARGET_ESP32S3
|
2023-02-24 01:34:34 -05:00
|
|
|
default 5 if IDF_TARGET_ESP32H2
|
2024-08-08 04:23:59 -04:00
|
|
|
default 36 if IDF_TARGET_ESP32P4
|
2022-02-08 12:14:47 -05:00
|
|
|
default 4 # C3 and others
|
|
|
|
|
|
|
|
config EXAMPLE_PIN_MISO
|
|
|
|
int "MISO GPIO number"
|
|
|
|
default 2 if IDF_TARGET_ESP32
|
|
|
|
default 37 if IDF_TARGET_ESP32S2
|
2024-08-12 04:58:18 -04:00
|
|
|
default 5 if IDF_TARGET_ESP32S3
|
2023-02-24 01:34:34 -05:00
|
|
|
default 0 if IDF_TARGET_ESP32H2
|
2024-08-08 04:23:30 -04:00
|
|
|
default 47 if IDF_TARGET_ESP32P4
|
2022-02-08 12:14:47 -05:00
|
|
|
default 6 # C3 and others
|
|
|
|
|
|
|
|
config EXAMPLE_PIN_CLK
|
|
|
|
int "CLK GPIO number"
|
|
|
|
default 14 if IDF_TARGET_ESP32
|
|
|
|
default 36 if IDF_TARGET_ESP32S2
|
2024-08-12 04:58:18 -04:00
|
|
|
default 2 if IDF_TARGET_ESP32S3
|
2023-02-24 01:34:34 -05:00
|
|
|
default 4 if IDF_TARGET_ESP32H2
|
2024-08-08 04:23:30 -04:00
|
|
|
default 53 if IDF_TARGET_ESP32P4
|
2022-02-08 12:14:47 -05:00
|
|
|
default 5 # C3 and others
|
|
|
|
|
|
|
|
config EXAMPLE_PIN_CS
|
|
|
|
int "CS GPIO number"
|
|
|
|
default 13 if IDF_TARGET_ESP32
|
|
|
|
default 34 if IDF_TARGET_ESP32S2
|
2024-08-12 04:58:18 -04:00
|
|
|
default 8 if IDF_TARGET_ESP32S3
|
2024-08-08 04:23:30 -04:00
|
|
|
default 33 if IDF_TARGET_ESP32P4
|
2022-02-08 12:14:47 -05:00
|
|
|
default 1 # C3 and others
|
|
|
|
|
2023-11-27 05:13:48 -05:00
|
|
|
config EXAMPLE_DEBUG_PIN_CONNECTIONS
|
|
|
|
bool "Debug sd pin connections and pullup strength"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EXAMPLE_ENABLE_ADC_FEATURE
|
|
|
|
bool "Enable ADC feature"
|
|
|
|
depends on EXAMPLE_DEBUG_PIN_CONNECTIONS
|
|
|
|
default y if IDF_TARGET_ESP32
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EXAMPLE_ADC_UNIT
|
|
|
|
int "ADC Unit"
|
|
|
|
depends on EXAMPLE_DEBUG_PIN_CONNECTIONS
|
|
|
|
default 1 if IDF_TARGET_ESP32
|
|
|
|
default 0 if IDF_TARGET_ESP32S3
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLE_ADC_PIN_MOSI
|
|
|
|
int "MOSI mapped ADC pin"
|
|
|
|
depends on EXAMPLE_ENABLE_ADC_FEATURE
|
|
|
|
default 3 if IDF_TARGET_ESP32
|
|
|
|
default 7 if IDF_TARGET_ESP32S3
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLE_ADC_PIN_MISO
|
|
|
|
int "MISO mapped ADC pin"
|
|
|
|
depends on EXAMPLE_ENABLE_ADC_FEATURE
|
|
|
|
default 2 if IDF_TARGET_ESP32
|
|
|
|
default 1 if IDF_TARGET_ESP32S3
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLE_ADC_PIN_CLK
|
|
|
|
int "CLK mapped ADC pin"
|
|
|
|
depends on EXAMPLE_ENABLE_ADC_FEATURE
|
|
|
|
default 6 if IDF_TARGET_ESP32
|
|
|
|
default 0 if IDF_TARGET_ESP32S3
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config EXAMPLE_ADC_PIN_CS
|
|
|
|
int "CS mapped ADC pin"
|
|
|
|
depends on EXAMPLE_ENABLE_ADC_FEATURE
|
|
|
|
default 4 if IDF_TARGET_ESP32
|
|
|
|
default 6 if IDF_TARGET_ESP32S3
|
|
|
|
default 1
|
|
|
|
|
2024-05-08 05:52:11 -04:00
|
|
|
config EXAMPLE_SD_PWR_CTRL_LDO_INTERNAL_IO
|
|
|
|
depends on SOC_SDMMC_IO_POWER_EXTERNAL
|
|
|
|
bool "SD power supply comes from internal LDO IO (READ HELP!)"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Only needed when the SD card is connected to specific IO pins which can be used for high-speed SDMMC.
|
|
|
|
Please read the schematic first and check if the SD VDD is connected to any internal LDO output.
|
|
|
|
Unselect this option if the SD card is powered by an external power supply.
|
|
|
|
|
|
|
|
config EXAMPLE_SD_PWR_CTRL_LDO_IO_ID
|
|
|
|
depends on SOC_SDMMC_IO_POWER_EXTERNAL && EXAMPLE_SD_PWR_CTRL_LDO_INTERNAL_IO
|
|
|
|
int "LDO ID"
|
|
|
|
default 4 if IDF_TARGET_ESP32P4
|
|
|
|
help
|
|
|
|
Please read the schematic first and input your LDO ID.
|
2020-03-30 10:26:21 -04:00
|
|
|
endmenu
|