1idf_build_get_property(target IDF_TARGET)
2
3set(srcs "src/esp_timer.c"
4         "src/ets_timer_legacy.c"
5         "src/system_time.c"
6         "src/esp_timer_impl_common.c")
7
8if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
9    list(APPEND srcs "src/esp_timer_impl_lac.c")
10elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
11    list(APPEND srcs "src/esp_timer_impl_systimer.c")
12endif()
13
14if(CONFIG_SOC_SYSTIMER_SUPPORT_ETM)
15    list(APPEND srcs "src/esp_timer_etm.c")
16endif()
17
18idf_component_register(SRCS "${srcs}"
19                    INCLUDE_DIRS include
20                    PRIV_INCLUDE_DIRS private_include
21                    REQUIRES esp_common
22                    PRIV_REQUIRES soc driver)
23