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 22b8978
Show file tree
Hide file tree
Showing 5 changed files with 481 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
12 changes: 12 additions & 0 deletions modules/openthread/Kconfig.thread
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,15 @@ config OPENTHREAD_DEFAULT_TX_POWER
default 0
help
Set the default TX output power [dBm] in radio driver for OpenThread purpose.

config OPENTHREAD_BLE_TCAT_THREAD_STACK_SIZE
int "Openthread default TCAT stack size"
default 4200
help
Openthread default TCAT stack size.

config OPENTHREAD_BLE_TCAT_RING_BUF_SIZE
int "Openthread BLE ringbuffer size"
default 512
help
Openthread BLE TCAT ringbuffer size.
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 22b8978

Please sign in to comment.