CMakeLists.txt 936 B

12345678910111213141516171819202122
  1. set(srcs "memory_checks.c"
  2. "test_runner.c"
  3. "test_utils.c")
  4. if(CONFIG_IDF_TARGET_ESP32)
  5. # ESP32's timer group doesn't have XTAL clock source,
  6. # so we can't implement a timekeeping that can work during DFS
  7. # but we can work around that by combining RMT and PCNT
  8. # where PCNT can count the pulses generated by RMT, and RMT is clocked from REF_TICK
  9. # REF_TICK won't be affected by DFS
  10. list(APPEND srcs "ref_clock_impl_rmt_pcnt.c")
  11. else()
  12. list(APPEND srcs "ref_clock_impl_timergroup.c")
  13. endif()
  14. idf_component_register(SRCS ${srcs}
  15. INCLUDE_DIRS include
  16. REQUIRES esp_partition idf_test cmock
  17. PRIV_REQUIRES perfmon esp_driver_pcnt esp_driver_gptimer esp_netif
  18. driver # TODO: replace with esp_driver_rmt
  19. )
  20. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")