2020-02-06 06:00:18 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2020-07-14 06:46:13 +00:00
|
|
|
set(srcs "src/esp_timer.c"
|
2021-03-08 15:01:40 +00:00
|
|
|
"src/ets_timer_legacy.c"
|
|
|
|
"src/system_time.c")
|
2020-02-06 06:00:18 +00:00
|
|
|
|
2021-12-14 11:01:19 +00:00
|
|
|
if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
|
2020-02-06 06:00:18 +00:00
|
|
|
list(APPEND srcs "src/esp_timer_impl_lac.c")
|
|
|
|
elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
|
|
|
|
list(APPEND srcs "src/esp_timer_impl_systimer.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
PRIV_INCLUDE_DIRS private_include
|
|
|
|
REQUIRES esp_common
|
2020-12-25 12:04:32 +00:00
|
|
|
PRIV_REQUIRES soc driver "${target}")
|