2024-04-29 19:55:27 +08:00
|
|
|
set(srcs
|
|
|
|
|
"test_app_main.c"
|
|
|
|
|
"test_ets_timer.c"
|
|
|
|
|
)
|
2024-07-08 18:55:00 +08:00
|
|
|
|
|
|
|
|
if(CONFIG_SOC_LIGHT_SLEEP_SUPPORTED)
|
|
|
|
|
list(APPEND srcs "test_esp_timer_light_sleep.c")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(CONFIG_SOC_SYSTIMER_SUPPORT_ETM)
|
|
|
|
|
list(APPEND srcs "test_esp_timer_etm.c")
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-04-29 19:55:27 +08:00
|
|
|
if(CONFIG_SOC_GPTIMER_SUPPORTED)
|
|
|
|
|
list(APPEND srcs "test_esp_timer.c")
|
|
|
|
|
endif()
|
|
|
|
|
|
2024-07-08 18:55:00 +08:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2022-10-24 20:35:32 +08:00
|
|
|
PRIV_INCLUDE_DIRS "../../private_include"
|
2024-07-08 18:55:00 +08:00
|
|
|
PRIV_REQUIRES cmock test_utils esp_timer spi_flash esp_psram esp_driver_gpio
|
2022-10-24 20:35:32 +08:00
|
|
|
WHOLE_ARCHIVE)
|