2023-08-28 06:02:08 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2024-01-21 11:29:42 +00:00
|
|
|
set(srcs "sdmmc_cmd.c"
|
|
|
|
"sdmmc_common.c"
|
|
|
|
"sdmmc_init.c"
|
|
|
|
"sdmmc_io.c"
|
|
|
|
"sdmmc_mmc.c"
|
|
|
|
"sdmmc_sd.c"
|
|
|
|
"sd_pwr_ctrl/sd_pwr_ctrl.c")
|
|
|
|
|
2024-03-25 07:41:20 +00:00
|
|
|
if(CONFIG_SOC_GP_LDO_SUPPORTED)
|
2024-01-21 11:29:42 +00:00
|
|
|
list(APPEND srcs "sd_pwr_ctrl/sd_pwr_ctrl_by_on_chip_ldo.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
PRIV_REQUIRES soc esp_timer esp_mm)
|