2021-09-02 13:25:34 +00:00
|
|
|
idf_build_get_property(idf_target IDF_TARGET)
|
|
|
|
|
2023-03-20 10:25:10 +00:00
|
|
|
set(srcs "")
|
|
|
|
set(include "include")
|
|
|
|
set(private_include "")
|
2021-07-09 04:04:15 +00:00
|
|
|
|
|
|
|
if(CONFIG_IEEE802154_ENABLED)
|
2023-03-20 10:25:10 +00:00
|
|
|
list(APPEND srcs "esp_ieee802154.c"
|
|
|
|
"driver/esp_ieee802154_ack.c"
|
|
|
|
"driver/esp_ieee802154_dev.c"
|
|
|
|
"driver/esp_ieee802154_frame.c"
|
|
|
|
"driver/esp_ieee802154_pib.c"
|
|
|
|
"driver/esp_ieee802154_util.c"
|
|
|
|
"driver/esp_ieee802154_sec.c"
|
|
|
|
"driver/esp_ieee802154_timer.c")
|
|
|
|
list(APPEND private_include "private_include")
|
2023-06-09 10:30:58 +00:00
|
|
|
|
|
|
|
if(CONFIG_IEEE802154_TEST)
|
|
|
|
list(REMOVE_ITEM private_include "private_include")
|
|
|
|
list(APPEND include "private_include")
|
|
|
|
endif()
|
|
|
|
|
2021-07-09 04:04:15 +00:00
|
|
|
endif()
|
2023-03-20 10:25:10 +00:00
|
|
|
|
2023-06-01 09:07:51 +00:00
|
|
|
if(CONFIG_IEEE802154_DEBUG)
|
|
|
|
list(APPEND srcs "driver/esp_ieee802154_debug.c")
|
|
|
|
endif()
|
|
|
|
|
2023-03-20 10:25:10 +00:00
|
|
|
idf_component_register(
|
|
|
|
SRCS "${srcs}"
|
|
|
|
INCLUDE_DIRS "${include}"
|
|
|
|
PRIV_INCLUDE_DIRS "${private_include}"
|
|
|
|
LDFRAGMENTS linker.lf
|
|
|
|
PRIV_REQUIRES esp_phy driver esp_timer esp_coex soc hal
|
|
|
|
)
|