[esp_timer]: created mock override component

This commit is contained in:
Jakob Hasse
2021-07-26 13:29:31 +08:00
parent 8750034c19
commit ca12c92877
11 changed files with 291 additions and 84 deletions

View File

@@ -1,9 +1,16 @@
idf_component_register(SRCS
"esp_exception.cpp"
"i2c_cxx.cpp"
"gpio_cxx.cpp"
"esp_event_api.cpp"
"esp_event_cxx.cpp"
"esp_timer_cxx.cpp"
idf_build_get_property(target IDF_TARGET)
set(srcs "esp_timer_cxx.cpp" "esp_exception.cpp" "gpio_cxx.cpp")
set(requires "esp_timer" "driver")
if(NOT ${target} STREQUAL "linux")
list(APPEND srcs
"i2c_cxx.cpp"
"esp_event_api.cpp"
"esp_event_cxx.cpp")
list(APPEND requires "esp_event")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
REQUIRES driver esp_event esp_timer)
REQUIRES ${requires})