CMakeLists.txt 619 B

123456789101112131415161718
  1. idf_build_get_property(target IDF_TARGET)
  2. set(srcs "src/esp_timer.c"
  3. "src/ets_timer_legacy.c")
  4. if(CONFIG_ESP_TIMER_IMPL_FRC2)
  5. list(APPEND srcs "src/esp_timer_impl_frc_legacy.c")
  6. elseif(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. idf_component_register(SRCS "${srcs}"
  12. INCLUDE_DIRS include
  13. PRIV_INCLUDE_DIRS private_include
  14. REQUIRES esp_common
  15. PRIV_REQUIRES soc driver "${target}")