Skip to content

Commit

Permalink
net: openthread: Add openthread TCAT implementation.
Browse files Browse the repository at this point in the history
This commit adds bbtc implementation.
New file in modules/openthread/platform/ble.c
New corresponding kconfig option `OPENTHREAD_BLE_TCAT`.

Co-authored-by: Piotr Jasiński <[email protected]>

Signed-off-by: Przemyslaw Bida <[email protected]>
Signed-off-by: Piotr Jasiński <[email protected]>
  • Loading branch information
canisLupus1313 committed Dec 7, 2023
1 parent fc39fb7 commit 3dee18a
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/openthread/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ else()
set(OT_BACKBONE_ROUTER_MULTICAST_ROUTING OFF CACHE BOOL "Enable BBR MR support" FORCE)
endif()

if(CONFIG_OPENTHREAD_BLE_TCAT)
set(OT_BLE_TCAT ON CACHE BOOL "Enable BLE TCAT support" FORCE)
else()
set(OT_BLE_TCAT OFF CACHE BOOL "Enable BLE TCAT support" FORCE)
endif()

if(CONFIG_OPENTHREAD_BORDER_AGENT)
set(OT_BORDER_AGENT ON CACHE BOOL "Enable Border Agent" FORCE)
else()
Expand Down
4 changes: 4 additions & 0 deletions modules/openthread/Kconfig.features
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ config OPENTHREAD_BACKBONE_ROUTER_DUA_NDPROXYING
config OPENTHREAD_BACKBONE_ROUTER_MULTICAST_ROUTING
bool "BBR MR support"

config OPENTHREAD_BLE_TCAT
bool "BLE TCAT support"
select EXPERIMENTAL

config OPENTHREAD_BORDER_AGENT
bool "Border Agent support"

Expand Down
1 change: 1 addition & 0 deletions modules/openthread/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ zephyr_library_sources(
spi.c
)

zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_BLE_TCAT ble.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_DIAG diag.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_COPROCESSOR uart.c)
zephyr_library_sources_ifdef(CONFIG_OPENTHREAD_CRYPTO_PSA crypto_psa.c)
Expand Down
Loading

0 comments on commit 3dee18a

Please sign in to comment.