Skip to content

Commit

Permalink
Add BLE Controller Library
Browse files Browse the repository at this point in the history
Signed-off-by: Masha Heller <[email protected]>
  • Loading branch information
MashaHeller authored and LarsMorstadTI committed Oct 14, 2024
1 parent fcee12c commit d376647
Show file tree
Hide file tree
Showing 14 changed files with 1,082 additions and 24 deletions.
22 changes: 22 additions & 0 deletions boards/ti/lp_em_cc2340r5/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
if BOARD_LP_EM_CC2340R5

config BT_CTLR
default BT

if BT
config ZEPHYR
bool "Bluetooth TI Controller on ZEPHYR"

select BT_CTLR_ADV_EXT_SUPPORT
select BT_CTLR_CHAN_SEL_2_SUPPORT
select BT_CTLR_DTM_HCI_SUPPORT

help
Bluetooth TI Controller on ZEPHYR OS.
default y

config BT_HOST_CRYPTO
default y if !BT_HCI_RAW
endif # BT

endif # BOARD_LP_EM_CC2340R5
2 changes: 2 additions & 0 deletions boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,bt-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;
};

aliases {
Expand Down
4 changes: 3 additions & 1 deletion boards/ti/lp_em_cc2340r5/lp_em_cc2340r5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_DYNAMIC_THREAD_POOL_SIZE=4
CONFIG_DYNAMIC_THREAD_STACK_SIZE=1024
CONFIG_DYNAMIC_THREAD_STACK_SIZE=1500

CONFIG_PM=n
2 changes: 1 addition & 1 deletion samples/bluetooth/extended_adv/advertiser/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ CONFIG_BT_DEVICE_NAME="test_ext_adv"
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_EXT_ADV=y

CONFIG_ASSERT=y
# CONFIG_ASSERT=y
14 changes: 14 additions & 0 deletions subsys/bluetooth/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ endif()
zephyr_library()
zephyr_library_link_libraries(subsys__bluetooth)

if(CONFIG_SOC_CC2340R5)

zephyr_library_include_directories(
ll_sw/ti/inc
)

zephyr_library_sources(
hci/ti/hci_driver.c
)

else()

zephyr_library_sources(
util/mem.c
util/memq.c
Expand Down Expand Up @@ -170,6 +182,8 @@ zephyr_library_sources_ifdef(
flash/soc_flash_nrf_ticker.c
)

endif()

zephyr_library_include_directories(
.
include
Expand Down
Loading

0 comments on commit d376647

Please sign in to comment.