Skip to content

Commit 394c10b

Browse files
committed
samples: Bluetooth: observer: Move Zephyr Controller Kconfigs
Move Zephyr Controller Kconfigs to overlay file. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 5b63d5d commit 394c10b

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

samples/bluetooth/observer/README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ If the used Bluetooth Low Energy Controller supports Extended Scanning, you may
1616
enable :kconfig:option:`CONFIG_BT_EXT_ADV` in the project configuration file. Refer to the
1717
project configuration file for further details.
1818

19+
Building Extended Scanning support with Zephyr Controller
20+
*********************************************************
21+
22+
.. code-block:: console
23+
24+
west build -b nrf52840dk/nrf52840 . -- -DCONF_FILE='prj_extended.conf' -DEXTRA_CONF_FILE='overlay-bt_ll_sw_split.conf'
25+
1926
Building Extended Scanning support for BBC Micro Bit board
2027
**********************************************************
2128

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended
2+
# Advertising Report for receiving the complete 1650 bytes of data
3+
CONFIG_BT_BUF_EVT_RX_COUNT=16
4+
5+
# Use Zephyr Bluetooth Low Energy Controller implementation
6+
CONFIG_BT_LL_SW_SPLIT=y
7+
8+
# Enable Coded PHY support in Zephyr Controller, if testing 4 advertising sets
9+
CONFIG_BT_CTLR_PHY_CODED=y
10+
11+
# Set maximum scan data length for Extended Scanning in Bluetooth LE Controller
12+
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650
13+
14+
# Increase Zephyr Bluetooth LE Controller Rx buffer to receive complete chain
15+
# of PDUs
16+
CONFIG_BT_CTLR_RX_BUFFERS=9
17+
18+
# Code size reduction
19+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
20+
CONFIG_LTO=y

samples/bluetooth/observer/prj_extended.conf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,3 @@ CONFIG_BT_OBSERVER=y
44
# Enable Extended Scanning
55
CONFIG_BT_EXT_ADV=y
66
CONFIG_BT_EXT_SCAN_BUF_SIZE=1650
7-
8-
# Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended
9-
# Advertising Report for receiving the complete 1650 bytes of data
10-
CONFIG_BT_BUF_EVT_RX_COUNT=16
11-
12-
# Set maximum scan data length for Extended Scanning in Bluetooth LE Controller
13-
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650
14-
15-
# Increase Zephyr Bluetooth LE Controller Rx buffer to receive complete chain
16-
# of PDUs
17-
CONFIG_BT_CTLR_RX_BUFFERS=9

samples/bluetooth/observer/sample.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ tests:
1919
platform_allow:
2020
- qemu_cortex_m3
2121
- qemu_x86
22-
- nrf52840dk/nrf52840
2322
integration_platforms:
2423
- qemu_cortex_m3
24+
sample.bluetooth.observer.extended.bt_ll_sw_split:
25+
harness: bluetooth
26+
tags: bluetooth
27+
extra_args:
28+
- CONF_FILE="prj_extended.conf"
29+
- EXTRA_CONF_FILE="overlay-bt_ll_sw_split.conf"
30+
platform_allow:
31+
- nrf52840dk/nrf52840
32+
integration_platforms:
2533
- nrf52840dk/nrf52840
2634
sample.bluetooth.observer.extended.bbc_microbit.bt_ll_sw_split:
2735
harness: bluetooth

0 commit comments

Comments
 (0)