forked from espressif/esp-idf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ieee802154: add IEEE 802.15.4 component
- Loading branch information
Showing
8 changed files
with
488 additions
and
2 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
idf_component_register( | ||
INCLUDE_DIRS include | ||
) | ||
|
||
if(CONFIG_IEEE802154_ENABLED) | ||
if(CONFIG_IEEE802154_LIB_FROM_INTERNAL_SRC) | ||
idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB) | ||
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}>) | ||
else() | ||
add_prebuilt_library(ieee802154_lib "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/lib802154.a") | ||
target_link_libraries(${COMPONENT_LIB} INTERFACE ieee802154_lib) | ||
endif() | ||
|
||
# force the phy libraries to be linked behind ieee802154 | ||
idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB) | ||
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> libphy.a libbtbb.a | ||
$<TARGET_FILE:${esp_phy_lib}>) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
menu "IEEE 802.15.4" | ||
visible if IDF_TARGET_ESP32H2 | ||
|
||
config IEEE802154_ENABLED | ||
bool | ||
default "y" if IDF_TARGET_ESP32H2 | ||
|
||
config IEEE802154_LIB_FROM_INTERNAL_SRC | ||
bool "Build IEEE 802.15.4 libraries from source" | ||
depends on IEEE802154_ENABLED | ||
default n | ||
help | ||
Override the shipped lib802154.a for internal builds. | ||
|
||
endmenu # IEEE 802.15.4 |
Oops, something went wrong.