2024-04-08 14:08:23 +02:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2023-12-28 14:54:19 +08:00
|
|
|
|
|
|
|
set(srcs)
|
|
|
|
set(public_include "include")
|
|
|
|
|
|
|
|
if(CONFIG_SOC_LEDC_SUPPORTED)
|
|
|
|
list(APPEND srcs "src/ledc.c")
|
|
|
|
endif()
|
|
|
|
|
2024-04-08 14:08:23 +02:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
set(priv_requires "")
|
|
|
|
else()
|
2025-01-09 21:40:48 +08:00
|
|
|
set(priv_requires esp_pm)
|
2024-04-08 14:08:23 +02:00
|
|
|
endif()
|
|
|
|
|
2023-12-28 14:54:19 +08:00
|
|
|
idf_component_register(
|
|
|
|
SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${public_include}
|
2024-04-08 14:08:23 +02:00
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2025-01-09 21:40:48 +08:00
|
|
|
REQUIRES esp_driver_gpio # IDF-11989: Remove this in IDF v6.0
|
2023-12-28 14:54:19 +08:00
|
|
|
LDFRAGMENTS "linker.lf"
|
|
|
|
)
|