2024-04-08 08:08:23 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2023-11-09 03:54:18 -05:00
|
|
|
set(srcs)
|
|
|
|
|
|
|
|
# Analog comparator related source files
|
|
|
|
if(CONFIG_SOC_ANA_CMPR_SUPPORTED)
|
|
|
|
list(APPEND srcs "ana_cmpr.c")
|
|
|
|
if(CONFIG_SOC_ANA_CMPR_SUPPORT_ETM)
|
|
|
|
list(APPEND srcs "ana_cmpr_etm.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2024-04-08 08:08:23 -04:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
set(priv_requires "")
|
|
|
|
else()
|
|
|
|
set(priv_requires esp_pm esp_driver_gpio)
|
|
|
|
endif()
|
|
|
|
|
2023-11-09 03:54:18 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS "include"
|
2024-04-08 08:08:23 -04:00
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2023-11-09 03:54:18 -05:00
|
|
|
LDFRAGMENTS "linker.lf"
|
|
|
|
)
|