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:
parent
5f51b0acba
commit
3023e76371
4 changed files with 40 additions and 0 deletions
24
snippets/bt-ll-sw-split/README.rst
Normal file
24
snippets/bt-ll-sw-split/README.rst
Normal 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`
|
3
snippets/bt-ll-sw-split/bt-ll-sw-split.conf
Normal file
3
snippets/bt-ll-sw-split/bt-ll-sw-split.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
CONFIG_BT=y
|
||||
CONFIG_BT_CTLR=y
|
||||
CONFIG_BT_LL_SW_SPLIT=y
|
9
snippets/bt-ll-sw-split/bt-ll-sw-split.overlay
Normal file
9
snippets/bt-ll-sw-split/bt-ll-sw-split.overlay
Normal file
|
@ -0,0 +1,9 @@
|
|||
&bt_hci_controller {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,bt-hci = &bt_hci_controller;
|
||||
};
|
||||
};
|
4
snippets/bt-ll-sw-split/snippet.yml
Normal file
4
snippets/bt-ll-sw-split/snippet.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue