Skip to content

Commit 3023e76

Browse files
rugeGerritsenmmahadevan108
authored andcommitted
snippets: Add snippet for the Zephyr Bluetooth Controller
By defining this snippet it becomes simpler to build an application for the Zephyr Bluetooth Controller in environments where this is not enabled in device tree by default. It removes the need for adding boilerplate overlay files to applications. Also, we would be able to add this snippet by default for samples and tests where it is required to use the zephyr link layer. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 5f51b0a commit 3023e76

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

snippets/bt-ll-sw-split/README.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.. _snippet-bt-ll-sw-split:
2+
3+
Zephyr Bluetooth LE Controller (bt-ll-sw-split)
4+
###############################################
5+
6+
You can build with this snippet by following the instructions in :ref:`the snippets usage page<using-snippets>`.
7+
When building with ``west``, you can do:
8+
9+
.. code-block:: console
10+
11+
west build -S bt-ll-sw-split [...]
12+
13+
Overview
14+
********
15+
16+
This selects the Zephyr Bluetooth LE Controller.
17+
18+
Requirements
19+
************
20+
21+
Hardware support for:
22+
23+
- :kconfig:option:`CONFIG_BT`
24+
- :kconfig:option:`CONFIG_BT_CTLR`
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_BT=y
2+
CONFIG_BT_CTLR=y
3+
CONFIG_BT_LL_SW_SPLIT=y
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
&bt_hci_controller {
2+
status = "okay";
3+
};
4+
5+
/ {
6+
chosen {
7+
zephyr,bt-hci = &bt_hci_controller;
8+
};
9+
};

snippets/bt-ll-sw-split/snippet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: bt-ll-sw-split
2+
append:
3+
EXTRA_CONF_FILE: bt-ll-sw-split.conf
4+
EXTRA_DTC_OVERLAY_FILE: bt-ll-sw-split.overlay

0 commit comments

Comments
 (0)