Skip to content

Commit 2abc58b

Browse files
cvinayaknashif
authored andcommitted
samples: Bluetooth: Remove duplicate board conf for iso_broadcast
Remove duplicated board specific conf file for iso_broadcast and iso_receive samples. Instead, have an overlay conf file. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 11ad5bf commit 2abc58b

14 files changed

+33
-34
lines changed

samples/bluetooth/iso_broadcast/README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Building and Running
2121
********************
2222

2323
This sample can be found under :zephyr_file:`samples/bluetooth/iso_broadcast` in
24-
the Zephyr tree.
24+
the Zephyr tree. Use `-DOVERLAY_CONFIG=overlay-bt_ll_sw_split.conf` to enable
25+
required ISO feature support in Zephyr Bluetooth Controller on supported boards.
2526

2627
Use the sample found under :zephyr_file:`samples/bluetooth/iso_receive` in the
2728
Zephyr tree that will scan, establish a periodic advertising synchronization,

samples/bluetooth/iso_broadcast/boards/nrf21540dk_nrf52840.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

samples/bluetooth/iso_broadcast/boards/nrf52840dk_nrf52840.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

samples/bluetooth/iso_broadcast/boards/nrf52_bsim.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

samples/bluetooth/iso_broadcast/boards/nrf52dk_nrf52832.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CONFIG_BT_CTLR_ADV_ISO=y
2+
CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX=4
3+
CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=2
4+
5+
CONFIG_BT_CTLR_ISOAL_SOURCES=2
6+
7+
# FIXME: Host needs CONFIG_BT_ISO_TX_MTU + 4 bytes for sequence number, and
8+
# optionally additional + 4 bytes for timestamp when not using
9+
# BT_ISO_TIMESTAMP_NONE in bt_iso_chan_send(), otherwise Host tries to fragment
10+
# ISO data.
11+
# When Host is fixed, CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE can inherit the
12+
# CONFIG_BT_ISO_TX_MTU value.
13+
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=12

samples/bluetooth/iso_broadcast/prj.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ CONFIG_BT_DEBUG_LOG=y
44
CONFIG_BT_DEVICE_NAME="Test ISO Broadcaster"
55

66
CONFIG_BT_ISO_MAX_CHAN=2
7-
CONFIG_BT_ISO_TX_BUF_COUNT=2
7+
CONFIG_BT_ISO_TX_BUF_COUNT=4
88

99
# Just needs to send a uint32_t value
10-
CONFIG_BT_ISO_TX_MTU=23
11-
12-
CONFIG_BT_CTLR_ISO_TX_BUFFERS=2
10+
CONFIG_BT_ISO_TX_MTU=4

samples/bluetooth/iso_broadcast/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ tests:
77
integration_platforms:
88
- qemu_cortex_m3
99
tags: bluetooth
10+
sample.bluetooth.iso_broadcast.bt_ll_sw_split:
11+
harness: bluetooth
12+
platform_allow: qemu_cortex_m3 qemu_x86 nrf52_bsim nrf52dk_nrf52832
13+
integration_platforms:
14+
- nrf52dk_nrf52832
15+
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
16+
tags: bluetooth

samples/bluetooth/iso_receive/README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Building and Running
2121
********************
2222

2323
This sample can be found under :zephyr_file:`samples/bluetooth/iso_receive` in
24-
the Zephyr tree.
24+
the Zephyr tree. Use `-DOVERLAY_CONFIG=overlay-bt_ll_sw_split.conf` to enable
25+
required ISO feature support in Zephyr Bluetooth Controller on supported boards.
2526

2627
Use the sample found under :zephyr_file:`samples/bluetooth/iso_broadcast` on
2728
another board that will start periodic advertising, create BIG to which this

samples/bluetooth/iso_receive/boards/nrf52840dk_nrf52840.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)