2024-01-08 06:17:37 -05:00
|
|
|
menu "TinyUSB MSC Example Configuration"
|
|
|
|
|
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
choice EXAMPLE_STORAGE_MEDIA
|
|
|
|
prompt "Storage Media Used"
|
|
|
|
default EXAMPLE_STORAGE_MEDIA_SPIFLASH
|
|
|
|
help
|
|
|
|
Select the storage media that is exposed to USB host.
|
|
|
|
|
|
|
|
config EXAMPLE_STORAGE_MEDIA_SPIFLASH
|
|
|
|
bool "SPI FLASH"
|
|
|
|
|
2024-01-08 06:17:37 -05:00
|
|
|
config EXAMPLE_STORAGE_MEDIA_SDMMC
|
2022-12-19 00:35:59 -05:00
|
|
|
bool "SDMMC CARD"
|
2024-01-08 06:17:37 -05:00
|
|
|
depends on IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
endchoice
|
|
|
|
|
2024-01-08 06:17:37 -05:00
|
|
|
if EXAMPLE_STORAGE_MEDIA_SDMMC
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
choice EXAMPLE_SDMMC_BUS_WIDTH
|
|
|
|
prompt "SD/MMC bus width"
|
|
|
|
default EXAMPLE_SDMMC_BUS_WIDTH_4
|
|
|
|
help
|
|
|
|
Select the bus width of SD or MMC interface.
|
|
|
|
Note that even if 1 line mode is used, D3 pin of the SD card must
|
|
|
|
have a pull-up resistor connected. Otherwise the card may enter
|
|
|
|
SPI mode, the only way to recover from which is to cycle power to the card.
|
|
|
|
|
|
|
|
config EXAMPLE_SDMMC_BUS_WIDTH_4
|
|
|
|
bool "4 lines (D0 - D3)"
|
|
|
|
|
|
|
|
config EXAMPLE_SDMMC_BUS_WIDTH_1
|
|
|
|
bool "1 line (D0)"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
if SOC_SDMMC_USE_GPIO_MATRIX
|
|
|
|
|
|
|
|
config EXAMPLE_PIN_CMD
|
|
|
|
int "CMD GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 35 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 44 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
config EXAMPLE_PIN_CLK
|
|
|
|
int "CLK GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 36 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 43 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
config EXAMPLE_PIN_D0
|
|
|
|
int "D0 GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 37 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 39 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
if EXAMPLE_SDMMC_BUS_WIDTH_4
|
|
|
|
|
|
|
|
config EXAMPLE_PIN_D1
|
|
|
|
int "D1 GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 38 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 40 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
config EXAMPLE_PIN_D2
|
|
|
|
int "D2 GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 33 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 41 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
config EXAMPLE_PIN_D3
|
|
|
|
int "D3 GPIO number"
|
2024-01-08 06:17:37 -05:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2022-12-19 00:35:59 -05:00
|
|
|
default 34 if IDF_TARGET_ESP32S3
|
2024-01-08 06:17:37 -05:00
|
|
|
default 42 if IDF_TARGET_ESP32P4
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
endif # EXAMPLE_SDMMC_BUS_WIDTH_4
|
|
|
|
|
|
|
|
endif # SOC_SDMMC_USE_GPIO_MATRIX
|
|
|
|
|
2024-01-08 06:17:37 -05:00
|
|
|
endif # EXAMPLE_STORAGE_MEDIA_SDMMC
|
2022-12-19 00:35:59 -05:00
|
|
|
|
|
|
|
endmenu
|