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 <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
Rubin Gerritsen 2024-08-22 10:06:28 +02:00 committed by Mahesh Mahadevan
parent 5f51b0acba
commit 3023e76371
4 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,24 @@
.. _snippet-bt-ll-sw-split:
Zephyr Bluetooth LE Controller (bt-ll-sw-split)
###############################################
You can build with this snippet by following the instructions in :ref:`the snippets usage page<using-snippets>`.
When building with ``west``, you can do:
.. code-block:: console
west build -S bt-ll-sw-split [...]
Overview
********
This selects the Zephyr Bluetooth LE Controller.
Requirements
************
Hardware support for:
- :kconfig:option:`CONFIG_BT`
- :kconfig:option:`CONFIG_BT_CTLR`

View File

@ -0,0 +1,3 @@
CONFIG_BT=y
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y

View File

@ -0,0 +1,9 @@
&bt_hci_controller {
status = "okay";
};
/ {
chosen {
zephyr,bt-hci = &bt_hci_controller;
};
};

View File

@ -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