CMakeLists.txt 628 B

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