CMakeLists.txt 667 B

12345678910111213141516171819202122
  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. "src/esp_timer_impl_common.c")
  6. if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
  7. list(APPEND srcs "src/esp_timer_impl_lac.c")
  8. elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
  9. list(APPEND srcs "src/esp_timer_impl_systimer.c")
  10. endif()
  11. if(CONFIG_SOC_SYSTIMER_SUPPORT_ETM)
  12. list(APPEND srcs "src/esp_timer_etm.c")
  13. endif()
  14. idf_component_register(SRCS "${srcs}"
  15. INCLUDE_DIRS include
  16. PRIV_INCLUDE_DIRS private_include
  17. REQUIRES esp_common
  18. PRIV_REQUIRES soc driver)