2020-02-06 01:00:18 -05:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2020-07-14 02:46:13 -04:00
|
|
|
set(srcs "src/esp_timer.c"
|
2021-03-08 10:01:40 -05:00
|
|
|
"src/ets_timer_legacy.c"
|
|
|
|
"src/system_time.c")
|
2020-02-06 01:00:18 -05:00
|
|
|
|
2021-12-14 06:01:19 -05:00
|
|
|
if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
|
2020-02-06 01:00:18 -05: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
|
2022-05-17 04:17:37 -04:00
|
|
|
PRIV_REQUIRES soc driver)
|