Files
esp-idf/components/esp_driver_ana_cmpr/CMakeLists.txt
T
morris dabfc7fc4b fix(ana_cmpr): correct swapped POS/NEG interrupt masks on ESP32-H21
Align H21 pos/neg cross interrupt bits with other targets and skip the
driver on the Linux simulator.
2026-09-18 14:12:06 +08:00

24 lines
702 B
CMake

idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
return() # This component is not supported by the POSIX/Linux simulator
endif()
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()
set(priv_requires esp_pm esp_driver_gpio)
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
PRIV_REQUIRES ${priv_requires}
REQUIRES esp_hal_ana_cmpr
LDFRAGMENTS "linker.lf"
)