Files
morris 3ca5ff43a2 feat(gptimer): move gptimer retention info from esp_hal_timg to esp_driver_gptimer
- Add gptimer_priv.h with retention type definitions
- Create timer_periph.c files for 8 chips in esp_driver_gptimer
- Remove retention code from esp_hal_timg timer_periph.c (keep signals)
2026-04-21 13:36:17 +08:00

29 lines
841 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)
set(public_include "include")
if(CONFIG_SOC_GPTIMER_SUPPORTED)
list(APPEND srcs "src/gptimer.c"
"src/gptimer_common.c")
if(CONFIG_SOC_PAU_SUPPORTED AND CONFIG_SOC_TIMER_SUPPORT_SLEEP_RETENTION)
list(APPEND srcs "${target}/timer_retention.c")
endif()
endif()
if(CONFIG_SOC_TIMER_SUPPORT_ETM)
list(APPEND srcs "src/gptimer_etm.c")
endif()
set(requires esp_pm esp_hal_timg)
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_INCLUDE_DIRS "src"
REQUIRES ${requires}
LDFRAGMENTS "linker.lf"
)