1# 2# Component Makefile 3# 4 5ifdef CONFIG_IDF_TARGET_ESP32 6 COMPONENT_SRCDIRS := src 7 COMPONENT_PRIV_INCLUDEDIRS := private_include 8 9 ifdef CONFIG_ESP_TIMER_IMPL_FRC2 10 # FRC2(legacy) timer is suppoted in esp32 11 COMPONENT_OBJEXCLUDE := src/esp_timer_impl_lac.o 12 endif 13 14 ifdef CONFIG_ESP_TIMER_IMPL_TG0_LAC 15 # TG0_LAC timer is suppoted in esp32 16 COMPONENT_OBJEXCLUDE := src/esp_timer_impl_frc_legacy.o 17 endif 18 19 COMPONENT_OBJEXCLUDE += src/esp_timer_impl_systimer.o 20else 21 $(error esp_timer is only supported by the Make build system for esp32 chip. For other chips, use the Cmake build system) 22endif 23