Skip to content

Commit 23ba628

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 af945d2 commit 23ba628

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
@@ -20,9 +20,17 @@ tests:
2020
platform_allow:
2121
- qemu_cortex_m3
2222
- qemu_x86
23-
- nrf52840dk/nrf52840
2423
integration_platforms:
2524
- qemu_cortex_m3
25+
sample.bluetooth.observer.extended.bt_ll_sw_split:
26+
harness: bluetooth
27+
tags: bluetooth
28+
extra_args:
29+
- CONF_FILE="prj_extended.conf"
30+
- EXTRA_CONF_FILE="overlay-bt_ll_sw_split.conf"
31+
platform_allow:
32+
- nrf52840dk/nrf52840
33+
integration_platforms:
2634
- nrf52840dk/nrf52840
2735
sample.bluetooth.observer.extended.bbc_microbit.bt_ll_sw_split:
2836
harness: bluetooth

0 commit comments

Comments
 (0)