2021-07-26 13:29:31 +08:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2021-10-22 10:35:46 +08:00
|
|
|
set(srcs "esp_timer_cxx.cpp" "esp_exception.cpp" "gpio_cxx.cpp" "i2c_cxx.cpp" "spi_cxx.cpp" "spi_host_cxx.cpp")
|
2021-07-26 13:29:31 +08:00
|
|
|
set(requires "esp_timer" "driver")
|
|
|
|
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
|
|
list(APPEND srcs
|
|
|
|
"esp_event_api.cpp"
|
|
|
|
"esp_event_cxx.cpp")
|
|
|
|
list(APPEND requires "esp_event")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2020-02-04 19:08:41 +01:00
|
|
|
INCLUDE_DIRS "include"
|
2021-01-14 13:52:36 +08:00
|
|
|
PRIV_INCLUDE_DIRS "private_include"
|
|
|
|
PRIV_REQUIRES freertos
|
2021-07-26 13:29:31 +08:00
|
|
|
REQUIRES ${requires})
|