mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-26 18:14:11 +00:00
21 lines
467 B
CMake
21 lines
467 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(srcs "esp_twai.c")
|
|
set(public_include "include")
|
|
set(priv_req esp_driver_gpio esp_pm)
|
|
|
|
if(CONFIG_SOC_TWAI_SUPPORTED)
|
|
list(APPEND srcs "esp_twai_onchip.c")
|
|
endif()
|
|
|
|
idf_component_register(
|
|
SRCS ${srcs}
|
|
INCLUDE_DIRS ${public_include}
|
|
PRIV_REQUIRES ${priv_req}
|
|
LDFRAGMENTS "linker.lf"
|
|
)
|