Skip to content

Commit

Permalink
[nrf noup] snippets: Add snippet for the Zephyr Bluetooth Controller
Browse files Browse the repository at this point in the history
By defining this snippet it becomes simpler to build an application
for the Zephyr Bluetooth Controller as it removes the need
for adding boilerplate overlay files to applications.

This snippet is only needed in NCS because the SoftDevice
Controller is the default and supported controller.

Signed-off-by: Rubin Gerritsen <[email protected]>
  • Loading branch information
rugeGerritsen authored and rlubos committed Sep 3, 2024
1 parent 02f5447 commit fb6ca20
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions snippets/bt-ll-sw-split/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _snippet-bt-ll-sw-split:

Zephyr Bluetooth LE Controller (bt-ll-sw-split)
###############################################

.. code-block:: console
west build -S bt-ll-sw-split [...]
Overview
********

This snippet changes the default Bluetooth controller to the Zephyr Bluetooth LE Controller.

Requirements
************

Hardware support for:

- :kconfig:option:`CONFIG_BT`
- :kconfig:option:`CONFIG_BT_CTLR`
3 changes: 3 additions & 0 deletions snippets/bt-ll-sw-split/bt-ll-sw-split.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_BT=y
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
13 changes: 13 additions & 0 deletions snippets/bt-ll-sw-split/bt-ll-sw-split.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
&bt_hci_controller {
status = "okay";
};

&bt_hci_sdc {
status = "disabled";
};

/ {
chosen {
zephyr,bt-hci = &bt_hci_controller;
};
};
4 changes: 4 additions & 0 deletions snippets/bt-ll-sw-split/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: bt-ll-sw-split
append:
EXTRA_CONF_FILE: bt-ll-sw-split.conf
EXTRA_DTC_OVERLAY_FILE: bt-ll-sw-split.overlay

0 comments on commit fb6ca20

Please sign in to comment.