2019-11-01 13:45:29 +01:00
|
|
|
# Bluetooth Controller configuration options
|
|
|
|
|
2017-03-31 03:50:49 +02:00
|
|
|
# Copyright (c) 2016-2017 Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-08-15 12:01:06 +02:00
|
|
|
|
2017-03-31 03:50:49 +02:00
|
|
|
comment "BLE Controller support"
|
|
|
|
|
2019-10-10 15:32:52 +03:00
|
|
|
# The following symbols are enabled depending if the controller actually
|
|
|
|
# supports the respective features.
|
|
|
|
|
|
|
|
config BT_CTLR_LE_ENC_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_CONN_PARAM_REQ_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_EXT_REJ_IND_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_SLAVE_FEAT_REQ_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_DATA_LEN_UPDATE_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_PRIVACY_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_EXT_SCAN_FP_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_PHY_UPDATE_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-09-15 16:45:38 +02:00
|
|
|
config BT_CTLR_PHY_2M_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_PHY_CODED_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2019-10-10 15:32:52 +03:00
|
|
|
config BT_CTLR_ADV_EXT_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-03-13 16:24:01 +05:30
|
|
|
config BT_CTLR_ADV_PERIODIC_SUPPORT
|
|
|
|
depends on BT_CTLR_ADV_EXT_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-10-05 10:42:39 +05:30
|
|
|
config BT_CTLR_SYNC_PERIODIC_SUPPORT
|
2020-07-20 12:55:26 +05:30
|
|
|
depends on BT_CTLR_ADV_EXT_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-10-19 11:49:39 +02:00
|
|
|
config BT_CTLR_ADV_ISO_SUPPORT
|
|
|
|
depends on BT_CTLR_ADV_PERIODIC_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_SYNC_ISO_SUPPORT
|
|
|
|
depends on BT_CTLR_SYNC_PERIODIC_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-11-03 10:16:52 +01:00
|
|
|
config BT_CTLR_CENTRAL_ISO_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_PERIPHERAL_ISO_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2019-10-10 15:32:52 +03:00
|
|
|
config BT_CTLR_CHAN_SEL_2_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-01-03 18:40:32 +01:00
|
|
|
config BT_CTLR_MIN_USED_CHAN_SUPPORT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BT_CTLR_DTM_HCI_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-01-24 15:38:24 +01:00
|
|
|
config BT_CTLR_SMI_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-08-27 08:55:41 +02:00
|
|
|
config BT_CTLR_CONN_RSSI_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2020-10-22 10:12:55 +02:00
|
|
|
config BT_CTLR_ECDH_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR
|
2017-03-31 03:50:49 +02:00
|
|
|
bool "Bluetooth Controller"
|
|
|
|
help
|
|
|
|
Enables support for SoC native controller implementations.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
if BT_CTLR
|
2016-08-15 12:01:06 +02:00
|
|
|
|
2018-09-24 17:08:04 +02:00
|
|
|
choice BT_LL_CHOICE
|
2017-03-14 10:48:59 +01:00
|
|
|
prompt "Bluetooth Link Layer Selection"
|
|
|
|
help
|
|
|
|
Select the Bluetooth Link Layer to compile.
|
|
|
|
|
2019-05-01 10:39:33 +05:30
|
|
|
config BT_LL_SW_SPLIT
|
2018-01-09 15:17:15 +01:00
|
|
|
bool "Software-based BLE Link Layer"
|
2018-06-26 14:03:34 +02:00
|
|
|
select BT_RECV_IS_RX_THREAD
|
2018-02-21 11:48:35 +01:00
|
|
|
select ENTROPY_GENERATOR
|
2020-12-10 17:55:57 +01:00
|
|
|
select NRF_HW_TIMER0_RESERVED
|
|
|
|
select NRF_HW_RTC0_RESERVED
|
2017-03-14 10:48:59 +01:00
|
|
|
help
|
2019-05-01 10:39:33 +05:30
|
|
|
Use Zephyr software BLE Link Layer ULL LLL split implementation.
|
2017-03-14 10:48:59 +01:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2017-03-31 03:50:49 +02:00
|
|
|
comment "BLE Controller configuration"
|
|
|
|
|
2018-06-26 11:51:18 +02:00
|
|
|
config BT_CTLR_CRYPTO
|
|
|
|
bool "Enable crypto functions in Controller"
|
|
|
|
default y
|
2019-11-07 10:04:19 +00:00
|
|
|
select ENTROPY_GENERATOR
|
2018-06-26 11:51:18 +02:00
|
|
|
help
|
|
|
|
Use random number generation and AES encryption support functions
|
|
|
|
provided by the controller.
|
|
|
|
|
2017-09-25 14:19:18 +02:00
|
|
|
config BT_CTLR_HCI_VS_BUILD_INFO
|
|
|
|
string "Zephyr HCI VS Build Info string"
|
|
|
|
default ""
|
2017-10-03 14:37:06 +02:00
|
|
|
depends on BT_HCI_VS_EXT
|
2017-09-25 14:19:18 +02:00
|
|
|
help
|
|
|
|
User-defined string that will be returned by the Zephyr VS Read Build
|
|
|
|
Information command after the Zephyr version and build time. When
|
|
|
|
setting this to a value different from an empty string, a space
|
|
|
|
character is required at the beginning to separate it from the
|
|
|
|
already included information.
|
|
|
|
|
2020-06-30 15:18:40 +02:00
|
|
|
config BT_CTLR_HCI_ADV_HANDLE_MAPPING
|
|
|
|
bool "Enable advertising set handle mapping between HCI and LL"
|
|
|
|
depends on BT_CTLR_ADV_EXT
|
|
|
|
default y if BT_HCI_RAW
|
|
|
|
help
|
|
|
|
Enable mapping of advertising set handles between HCI and LL when
|
|
|
|
using external host since it can use arbitrary numbers as set handles
|
|
|
|
(as defined by Core specification) as opposed to LL which always uses
|
|
|
|
zero-based numbering. When using with Zephyr host this option can be
|
|
|
|
disabled to remove extra mapping logic.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_DUP_FILTER_LEN
|
2018-07-12 13:26:29 +02:00
|
|
|
int "Number of addresses in the scan duplicate filter"
|
2017-08-09 09:21:11 +03:00
|
|
|
depends on BT_OBSERVER
|
2017-04-09 05:48:15 +02:00
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Set the number of unique BLE addresses that can be filtered as
|
|
|
|
duplicates while scanning.
|
|
|
|
|
2019-01-09 21:25:14 +05:30
|
|
|
config BT_CTLR_MESH_SCAN_FILTERS
|
2019-02-26 21:12:10 +01:00
|
|
|
int "Number of Mesh scan filters"
|
2019-01-09 21:25:14 +05:30
|
|
|
depends on BT_HCI_MESH_EXT
|
|
|
|
default 1
|
|
|
|
range 1 15
|
|
|
|
help
|
|
|
|
Set the number of unique Mesh Scan Filters available as part of
|
|
|
|
the Intel Mesh Vendor Specific Extensions.
|
|
|
|
|
|
|
|
config BT_CTLR_MESH_SF_PATTERNS
|
2019-02-26 21:12:10 +01:00
|
|
|
int "Number of Mesh scan filter patterns"
|
2019-01-09 21:25:14 +05:30
|
|
|
depends on BT_HCI_MESH_EXT
|
|
|
|
default 15
|
|
|
|
range 1 15
|
|
|
|
help
|
|
|
|
Set the number of unique Mesh Scan Filter patterns available per
|
|
|
|
Scan Filter as part of the Intel Mesh Vendor Specific Extensions.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_RX_BUFFERS
|
2018-07-12 13:26:29 +02:00
|
|
|
int "Number of Rx buffers"
|
2017-08-09 09:21:11 +03:00
|
|
|
default 6 if BT_HCI_RAW
|
Kconfig: Use the first default with a satisfied condition
Up until now, Zephyr has patched Kconfig to use the last 'default' with
a satisfied condition, instead of the first one. I'm not sure why the
patch was added (it predates Kconfiglib), but I suspect it's related to
Kconfig.defconfig files.
There are at least three problems with the patch:
1. It's inconsistent with how Kconfig works in other projects, which
might confuse newcomers.
2. Due to oversights, earlier 'range' properties are still preferred,
as well as earlier 'default' properties on choices.
In addition to being inconsistent, this makes it impossible to
override 'range' properties and choice 'default' properties if the
base definition of the symbol/choice already has 'range'/'default'
properties.
I've seen errors caused by the inconsistency, and I suspect there
are more.
3. A fork of Kconfiglib that adds the patch needs to be maintained.
Get rid of the patch and go back to standard Kconfig behavior, as
follows:
1. Include the Kconfig.defconfig files first instead of last in
Kconfig.zephyr.
2. Include boards/Kconfig and arch/<arch>/Kconfig first instead of
last in arch/Kconfig.
3. Include arch/<arch>/soc/*/Kconfig first instead of last in
arch/<arch>/Kconfig.
4. Swap a few other 'source's to preserve behavior for some scattered
symbols with multiple definitions.
Swap 'source's in some no-op cases too, where it might match the
intent.
5. Reverse the defaults on symbol definitions that have more than one
default.
Skip defaults that are mutually exclusive, e.g. where each default
has an 'if <some board>' condition. They are already safe.
6. Remove the prefer-later-defaults patch from Kconfiglib.
Testing was done with a Python script that lists all Kconfig
symbols/choices with multiple defaults, along with a whitelist of fixed
symbols. The script also verifies that there are no "unreachable"
defaults hidden by defaults without conditions
As an additional test, zephyr/.config was generated before and after the
change for several samples and checked to be identical (after sorting).
This commit includes some default-related cleanups as well:
- Simplify some symbol definitions, e.g. where a default has 'if FOO'
when the symbol already has 'depends on FOO'.
- Remove some redundant 'default ""' for string symbols. This is the
implicit default.
Piggyback fixes for swapped ranges on BT_L2CAP_RX_MTU and
BT_L2CAP_TX_MTU (caused by confusing inconsistency).
Piggyback some fixes for style nits too, e.g. unindented help texts.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-07-30 10:57:47 +02:00
|
|
|
default 1
|
2017-05-15 11:10:47 +02:00
|
|
|
range 1 18
|
2016-08-15 12:01:06 +02:00
|
|
|
help
|
2017-05-15 11:10:47 +02:00
|
|
|
Set the number of Rx PDUs to be buffered in the controller. In a 7.5ms
|
|
|
|
connection interval and 2M PHY, maximum 18 packets with L2CAP payload
|
|
|
|
size of 1 byte can be received.
|
2016-08-15 12:01:06 +02:00
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_TX_BUFFERS
|
2018-07-12 13:26:29 +02:00
|
|
|
int "Number of Tx buffers"
|
2017-08-09 09:21:11 +03:00
|
|
|
default 7 if BT_HCI_RAW
|
2018-10-02 13:49:12 +02:00
|
|
|
default 3
|
2017-05-15 11:10:47 +02:00
|
|
|
range 1 19
|
2016-08-15 12:01:06 +02:00
|
|
|
help
|
2017-05-15 11:10:47 +02:00
|
|
|
Set the number of Tx PDUs to be queued for transmission in the
|
|
|
|
controller. In a 7.5ms connection interval and 2M PHY, maximum 19
|
|
|
|
packets can be enqueued, with 18 packets with L2CAP payload size of 1
|
|
|
|
byte can be acknowledged.
|
2016-08-15 12:01:06 +02:00
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_TX_BUFFER_SIZE
|
2018-07-12 13:26:29 +02:00
|
|
|
int "Tx buffer size"
|
2020-01-14 19:18:23 +05:30
|
|
|
range 27 251
|
2016-12-30 06:24:42 +01:00
|
|
|
default 27
|
|
|
|
help
|
|
|
|
Size of the Tx buffers and the value returned in HCI LE Read Buffer
|
|
|
|
Size command response. If this size if greater than effective PDU size
|
|
|
|
then controller will perform fragmentation before transmitting on the
|
|
|
|
the packet on air.
|
2020-01-14 19:18:23 +05:30
|
|
|
Maximum is set to 251 due to implementation limitations (use of
|
2020-05-27 11:26:57 -05:00
|
|
|
uint8_t for length field in PDU buffer structure).
|
2016-12-30 06:24:42 +01:00
|
|
|
|
2020-10-30 11:26:26 +01:00
|
|
|
config BT_CTLR_ISO_TX_BUFFERS
|
|
|
|
int "Number of Isochronous Tx buffers"
|
|
|
|
default 3
|
|
|
|
range 1 19
|
2020-11-09 16:31:01 +01:00
|
|
|
depends on BT_CTLR_ADV_ISO || BT_CTLR_SYNC_ISO || BT_CTLR_CENTRAL_ISO || BT_CTLR_PERIPHERAL_ISO
|
2020-10-30 11:26:26 +01:00
|
|
|
help
|
|
|
|
Set the number of Isochronous Tx PDUs to be queued for transmission
|
|
|
|
in the controller.
|
|
|
|
|
|
|
|
config BT_CTLR_ISO_TX_BUFFER_SIZE
|
|
|
|
int "Isochronous Tx buffer size"
|
|
|
|
range 1 4095
|
|
|
|
default 27
|
|
|
|
help
|
|
|
|
Size of the Isochronous Tx buffers and the value returned in HCI LE
|
|
|
|
Read Buffer Size V2 command response.
|
|
|
|
|
2020-09-02 11:17:04 +10:00
|
|
|
choice BT_CTLR_TX_PWR
|
2018-06-05 00:52:10 +05:30
|
|
|
prompt "Tx Power"
|
|
|
|
default BT_CTLR_TX_PWR_0
|
|
|
|
help
|
|
|
|
Select the supported BLE Radio transmit power level in dBm.
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_8
|
|
|
|
bool "+8 dBm"
|
2020-11-16 04:06:13 -08:00
|
|
|
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_7
|
|
|
|
bool "+7 dBm"
|
2020-11-16 04:06:13 -08:00
|
|
|
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_6
|
|
|
|
bool "+6 dBm"
|
2020-11-16 04:06:13 -08:00
|
|
|
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_5
|
|
|
|
bool "+5 dBm"
|
2020-11-16 04:06:13 -08:00
|
|
|
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_4
|
|
|
|
bool "+4 dBm"
|
2019-08-15 15:29:51 +02:00
|
|
|
depends on SOC_SERIES_NRF51X || SOC_COMPATIBLE_NRF52X
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_3
|
|
|
|
bool "+3 dBm"
|
2018-10-03 16:37:18 +02:00
|
|
|
depends on SOC_COMPATIBLE_NRF52X
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_PLUS_2
|
|
|
|
bool "+2 dBm"
|
2020-11-16 04:06:13 -08:00
|
|
|
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_0
|
|
|
|
bool "0 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_4
|
|
|
|
bool "-4 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_8
|
|
|
|
bool "-8 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_12
|
|
|
|
bool "-12 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_16
|
|
|
|
bool "-16 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_20
|
|
|
|
bool "-20 dBm"
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_30
|
|
|
|
bool "-30 dBm"
|
|
|
|
depends on SOC_SERIES_NRF51X
|
|
|
|
|
|
|
|
config BT_CTLR_TX_PWR_MINUS_40
|
|
|
|
bool "-40 dBm"
|
2018-10-03 16:37:18 +02:00
|
|
|
depends on SOC_COMPATIBLE_NRF52X
|
2018-06-05 00:52:10 +05:30
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2019-10-22 13:13:24 +02:00
|
|
|
config BT_CTLR_TX_PWR_DYNAMIC_CONTROL
|
|
|
|
bool "Tx Power Dynamic Control"
|
|
|
|
depends on BT_HCI_VS_EXT
|
|
|
|
help
|
|
|
|
Enable dynamic control of Tx power per role/connection.
|
|
|
|
Provides HCI VS commands to set and get the current Tx
|
|
|
|
power on an individual role/connection basis.
|
|
|
|
|
2017-03-28 00:37:05 +02:00
|
|
|
comment "BLE Controller features"
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_CONN
|
2017-05-29 09:58:59 +02:00
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_LE_ENC
|
2018-07-24 18:58:38 +02:00
|
|
|
bool "LE Encryption"
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_CTLR_LE_ENC_SUPPORT
|
2017-05-30 00:12:10 +02:00
|
|
|
default y
|
2018-07-24 18:58:38 +02:00
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.0 LE Encryption feature in the
|
|
|
|
Controller.
|
2017-05-30 00:12:10 +02:00
|
|
|
|
2020-10-22 10:12:55 +02:00
|
|
|
config BT_CTLR_ECDH
|
|
|
|
bool "Elliptic Curve Diffie-Hellman (ECDH)"
|
|
|
|
depends on BT_CTLR_ECDH_SUPPORT
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetoooth v4.2 Elliptic Curve Diffie-Hellman
|
|
|
|
feature in the controller.
|
|
|
|
|
2017-03-13 11:17:36 +01:00
|
|
|
config BT_CTLR_CONN_PARAM_REQ
|
|
|
|
bool "Connection Parameter Request"
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_CTLR_CONN_PARAM_REQ_SUPPORT
|
2018-12-17 10:46:13 +01:00
|
|
|
select BT_CTLR_EXT_REJ_IND
|
2017-03-13 11:17:36 +01:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.1 Connection Parameter Request feature
|
|
|
|
in the Controller.
|
|
|
|
|
2018-12-17 10:46:13 +01:00
|
|
|
config BT_CTLR_EXT_REJ_IND
|
|
|
|
bool "Extended Reject Indication"
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_CTLR_EXT_REJ_IND_SUPPORT
|
2018-12-17 10:46:13 +01:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.1 Extended Reject Indication feature
|
|
|
|
in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_SLAVE_FEAT_REQ
|
|
|
|
bool "Slave-initiated Features Exchange"
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_CTLR_SLAVE_FEAT_REQ_SUPPORT
|
2018-12-17 10:46:13 +01:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.1 Slave-initiated Features Exchange
|
|
|
|
feature in the Controller.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_LE_PING
|
2016-12-28 05:34:37 +01:00
|
|
|
bool "LE Ping"
|
2018-12-17 10:46:13 +01:00
|
|
|
depends on BT_CTLR_LE_ENC
|
2016-12-28 05:34:37 +01:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.1 LE Ping feature in the Controller.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_DATA_LENGTH
|
2018-11-21 11:14:19 +01:00
|
|
|
# Hidden option to enable support for Bluetooth v4.2 LE Data Length
|
|
|
|
# Update procedure in the Controller.
|
|
|
|
bool
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_DATA_LEN_UPDATE && BT_CTLR_DATA_LEN_UPDATE_SUPPORT
|
|
|
|
default y
|
2016-12-28 06:35:05 +01:00
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_DATA_LENGTH_MAX
|
2018-07-12 13:26:29 +02:00
|
|
|
int "Maximum data length supported"
|
2017-08-14 13:45:13 +02:00
|
|
|
depends on BT_CTLR_DATA_LENGTH
|
2016-12-28 06:35:05 +01:00
|
|
|
default 27
|
2019-02-09 07:10:09 +05:30
|
|
|
range 27 251
|
2016-12-28 06:35:05 +01:00
|
|
|
help
|
|
|
|
Set the maximum data length of PDU supported in the Controller.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_PHY
|
2018-11-21 10:52:18 +01:00
|
|
|
# Hidden option to enable support for Bluetooth 5.0 PHY Update
|
|
|
|
# Procedure in the Controller.
|
|
|
|
bool
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_PHY_UPDATE && BT_CTLR_PHY_UPDATE_SUPPORT
|
2018-12-17 10:46:13 +01:00
|
|
|
select BT_CTLR_EXT_REJ_IND
|
2019-10-10 15:32:52 +03:00
|
|
|
default y
|
2017-04-29 06:50:52 +02:00
|
|
|
|
2019-10-01 16:10:05 +05:30
|
|
|
config BT_CTLR_MIN_USED_CHAN
|
|
|
|
bool "Minimum Number of Used Channels"
|
2020-01-03 18:40:32 +01:00
|
|
|
depends on BT_CTLR_MIN_USED_CHAN_SUPPORT
|
2019-10-01 16:10:05 +05:30
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 Minimum Number of Used Channels
|
|
|
|
Procedure in the Controller.
|
|
|
|
|
2020-08-27 08:55:41 +02:00
|
|
|
config BT_CTLR_CONN_RSSI
|
|
|
|
bool "Connection RSSI"
|
|
|
|
depends on BT_CTLR_CONN_RSSI_SUPPORT
|
|
|
|
default y if BT_HCI_RAW
|
|
|
|
help
|
|
|
|
Enable connection RSSI measurement.
|
|
|
|
|
2021-02-23 15:41:44 +01:00
|
|
|
config BT_CTLR_CHECK_SAME_PEER_CONN
|
|
|
|
bool
|
|
|
|
default BT_MAX_CONN > 1 && !BT_CTLR_ALLOW_SAME_PEER_CONN
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_CONN
|
2017-04-26 14:41:23 +02:00
|
|
|
|
2020-09-30 16:20:11 +02:00
|
|
|
config BT_CTLR_FILTER
|
|
|
|
bool "Device Whitelist Support"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for controller device whitelist feature
|
|
|
|
|
2020-09-30 16:23:22 +02:00
|
|
|
config BT_CTLR_PRIVACY
|
|
|
|
bool "LE Controller-based Privacy"
|
|
|
|
depends on BT_CTLR_PRIVACY_SUPPORT
|
|
|
|
default y
|
|
|
|
select BT_CTLR_FILTER if BT_LL_SW_SPLIT
|
|
|
|
select BT_RPA
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.2 LE Controller-based Privacy feature
|
|
|
|
in the Controller.
|
|
|
|
|
2020-11-15 22:31:13 +01:00
|
|
|
config BT_CTLR_WL_SIZE
|
|
|
|
int "LE Controller-based Privacy White List size"
|
|
|
|
depends on BT_CTLR_FILTER
|
|
|
|
default 8
|
|
|
|
range 1 8 if (SOC_COMPATIBLE_NRF || SOC_OPENISA_RV32M1_RISCV32)
|
|
|
|
range 1 16 if !(SOC_COMPATIBLE_NRF || SOC_OPENISA_RV32M1_RISCV32)
|
|
|
|
help
|
|
|
|
Set the size of the White List for LE Controller-based Privacy.
|
|
|
|
On nRF5x-based controllers, the hardware imposes a limit of 8 devices.
|
|
|
|
On OpenISA-based controllers, the hardware imposes a limit of 8 devices.
|
|
|
|
|
2020-09-30 16:23:22 +02:00
|
|
|
config BT_CTLR_RL_SIZE
|
|
|
|
int "LE Controller-based Privacy Resolving List size"
|
|
|
|
depends on BT_CTLR_PRIVACY
|
|
|
|
default 8
|
|
|
|
range 1 8 if SOC_COMPATIBLE_NRF
|
|
|
|
range 1 8 if SOC_OPENISA_RV32M1_RISCV32
|
|
|
|
help
|
|
|
|
Set the size of the Resolving List for LE Controller-based Privacy.
|
|
|
|
On nRF5x-based controllers, the hardware imposes a limit of 8 devices.
|
|
|
|
On OpenISA-based controllers, the hardware imposes a limit of 8 devices.
|
|
|
|
|
|
|
|
config BT_CTLR_EXT_SCAN_FP
|
|
|
|
bool "LE Extended Scanner Filter Policies"
|
|
|
|
depends on BT_OBSERVER && BT_CTLR_EXT_SCAN_FP_SUPPORT
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth v4.2 LE Extended Scanner Filter Policies
|
|
|
|
in the Controller.
|
|
|
|
|
2020-09-11 15:15:33 +02:00
|
|
|
config BT_CTLR_PHY_2M
|
|
|
|
bool "2Mbps PHY Support"
|
|
|
|
depends on (BT_CTLR_PHY || BT_CTLR_ADV_EXT) && BT_CTLR_PHY_2M_SUPPORT
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 2Mbps PHY in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_PHY_CODED
|
|
|
|
bool "Coded PHY Support"
|
|
|
|
depends on (BT_CTLR_PHY || BT_CTLR_ADV_EXT) && BT_CTLR_PHY_CODED_SUPPORT
|
2021-01-20 14:27:30 +01:00
|
|
|
default y if BT_HCI_RAW
|
2020-09-11 15:15:33 +02:00
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 Coded PHY in the Controller.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_CHAN_SEL_2
|
2017-04-06 05:12:44 +02:00
|
|
|
bool "Channel Selection Algorithm #2"
|
2020-10-05 10:42:39 +05:30
|
|
|
depends on (BT_CONN || BT_CTLR_ADV_PERIODIC || BT_CTLR_SYNC_PERIODIC) && BT_CTLR_CHAN_SEL_2_SUPPORT
|
2017-04-06 05:12:44 +02:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 LE Channel Selection Algorithm #2 in
|
|
|
|
the Controller.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
config BT_CTLR_ADV_EXT
|
2020-06-11 12:27:01 +05:30
|
|
|
bool "LE Advertising Extensions" if !BT_LL_SW_SPLIT
|
2019-10-10 15:32:52 +03:00
|
|
|
depends on BT_CTLR_ADV_EXT_SUPPORT
|
2020-08-19 12:42:01 +05:30
|
|
|
select BT_CTLR_SCAN_REQ_NOTIFY if BT_LL_SW_SPLIT && BT_BROADCASTER
|
2020-07-12 15:27:06 +02:00
|
|
|
# Enable by default for BT_LL_SW_SPLIT when "LE Advertising Set Terminated event" is implemented
|
|
|
|
default y if BT_EXT_ADV && !BT_LL_SW_SPLIT
|
2017-04-26 14:41:23 +02:00
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 LE Advertising Extensions in the
|
|
|
|
Controller.
|
2017-05-29 09:58:59 +02:00
|
|
|
|
2020-06-11 12:27:01 +05:30
|
|
|
config BT_CTLR_ADV_EXT
|
|
|
|
prompt "LE Advertising Extensions [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
|
|
|
|
|
|
|
if BT_CTLR_ADV_EXT
|
|
|
|
|
2020-03-13 16:24:01 +05:30
|
|
|
config BT_CTLR_ADV_SET
|
2019-02-26 21:12:10 +01:00
|
|
|
int "LE Advertising Extensions Sets"
|
2020-06-11 12:27:01 +05:30
|
|
|
depends on BT_BROADCASTER
|
2020-02-12 08:55:57 +05:30
|
|
|
range 1 64
|
2020-04-08 15:50:54 +05:30
|
|
|
default BT_EXT_ADV_MAX_ADV_SET if BT_EXT_ADV
|
2018-12-18 05:48:20 +01:00
|
|
|
help
|
|
|
|
Maximum supported advertising sets.
|
|
|
|
|
2020-03-13 16:24:01 +05:30
|
|
|
config BT_CTLR_ADV_PERIODIC
|
2020-10-05 10:49:03 +05:30
|
|
|
bool "LE Periodic Advertising in Advertising State" if !BT_LL_SW_SPLIT
|
2020-06-11 12:27:01 +05:30
|
|
|
depends on BT_BROADCASTER && BT_CTLR_ADV_PERIODIC_SUPPORT
|
2020-02-06 16:43:46 +05:30
|
|
|
select BT_CTLR_CHAN_SEL_2
|
2020-05-21 10:20:11 +05:30
|
|
|
default y if BT_PER_ADV
|
2020-03-13 16:24:01 +05:30
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 LE Periodic Advertising in the
|
|
|
|
Controller.
|
|
|
|
|
2020-10-05 10:49:03 +05:30
|
|
|
config BT_CTLR_ADV_PERIODIC
|
|
|
|
bool "LE Periodic Advertising in Advertising State [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
|
|
|
|
2020-10-05 10:42:39 +05:30
|
|
|
config BT_CTLR_SYNC_PERIODIC
|
2020-10-05 10:49:03 +05:30
|
|
|
bool "LE Periodic Advertising in Synchronization State" if !BT_LL_SW_SPLIT
|
2020-10-05 10:42:39 +05:30
|
|
|
depends on BT_OBSERVER && BT_CTLR_SYNC_PERIODIC_SUPPORT
|
2020-07-20 12:55:26 +05:30
|
|
|
select BT_CTLR_CHAN_SEL_2
|
|
|
|
default y if BT_PER_ADV_SYNC
|
|
|
|
help
|
2020-10-05 10:49:03 +05:30
|
|
|
Enable support for Bluetooth 5.0 LE Periodic Advertising in
|
|
|
|
Synchronization state in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_SYNC_PERIODIC
|
|
|
|
bool "LE Periodic Advertising in Synchronization State [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
2020-07-20 12:55:26 +05:30
|
|
|
|
2020-10-19 11:49:39 +02:00
|
|
|
config BT_CTLR_ADV_ISO
|
|
|
|
bool "LE Broadcast Isochronous Channel advertising" if !BT_LL_SW_SPLIT
|
|
|
|
depends on BT_BROADCASTER && BT_CTLR_ADV_ISO_SUPPORT
|
|
|
|
select BT_CTLR_ADV_PERIODIC
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.2 LE Isochronous Advertising in the
|
|
|
|
Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_ADV_ISO
|
|
|
|
bool "LE Broadcast Isochronous Channel advertising [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
|
|
|
|
|
|
|
config BT_CTLR_SYNC_ISO
|
|
|
|
bool "LE Broadcast Isochronous Channel advertising sync" if !BT_LL_SW_SPLIT
|
2020-11-09 16:31:01 +01:00
|
|
|
depends on BT_OBSERVER && BT_CTLR_SYNC_ISO_SUPPORT
|
2020-10-19 11:49:39 +02:00
|
|
|
select BT_CTLR_SYNC_PERIODIC
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.2 LE Isochronous Advertising sync in
|
|
|
|
the Controller.
|
|
|
|
|
2020-10-21 21:14:07 +02:00
|
|
|
config BT_CTLR_ADV_ISO_SET
|
|
|
|
int "LE Isochronous Channel advertising sets"
|
|
|
|
depends on BT_CTLR_ADV_ISO
|
|
|
|
range 1 32
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Maximum supported advertising sets.
|
|
|
|
|
2020-10-19 11:49:39 +02:00
|
|
|
config BT_CTLR_SYNC_ISO
|
|
|
|
bool "LE Broadcast Isochronous Channel advertising sync [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
|
|
|
|
2020-05-04 12:56:50 +05:30
|
|
|
config BT_CTLR_ADV_DATA_LEN_MAX
|
|
|
|
int "Maximum Advertising Data Length"
|
|
|
|
range 31 1650
|
|
|
|
help
|
|
|
|
Maximum Extended Advertising Data Length.
|
|
|
|
|
2020-06-11 12:27:01 +05:30
|
|
|
endif # BT_CTLR_ADV_EXT
|
2020-04-21 11:12:41 +05:30
|
|
|
|
2020-11-23 15:28:22 +01:00
|
|
|
config BT_CTLR_SET_HOST_FEATURE
|
|
|
|
bool "LE Set Host Feature Command [EXPERIMENTAL]"
|
|
|
|
help
|
|
|
|
Enables optional LE Set Host Feature Command
|
|
|
|
|
2020-11-03 10:16:52 +01:00
|
|
|
config BT_CTLR_CENTRAL_ISO
|
|
|
|
bool "LE Connected Isochronous Stream Central" if !BT_LL_SW_SPLIT
|
|
|
|
depends on BT_CTLR_CENTRAL_ISO_SUPPORT && BT_CENTRAL
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.2 LE Connected Isochronous Stream
|
|
|
|
Central role in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_CENTRAL_ISO
|
|
|
|
bool "LE Connected Isochronous Stream Central [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
2020-11-23 15:28:22 +01:00
|
|
|
select BT_CTLR_SET_HOST_FEATURE
|
2020-11-03 10:16:52 +01:00
|
|
|
|
|
|
|
config BT_CTLR_PERIPHERAL_ISO
|
|
|
|
bool "LE Connected Isochronous Stream Peripheral" if !BT_LL_SW_SPLIT
|
|
|
|
depends on BT_CTLR_PERIPHERAL_ISO_SUPPORT && BT_PERIPHERAL
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.2 LE Connected Isochronous Stream
|
|
|
|
Peripheral role in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_PERIPHERAL_ISO
|
|
|
|
bool "LE Connected Isochronous Stream Peripheral [EXPERIMENTAL]" if BT_LL_SW_SPLIT
|
2020-11-23 15:28:22 +01:00
|
|
|
select BT_CTLR_SET_HOST_FEATURE
|
2020-11-03 10:16:52 +01:00
|
|
|
|
2021-01-20 11:10:15 +01:00
|
|
|
config BT_CTLR_CONN_ISO_STREAMS
|
|
|
|
int "LE Connected Isochronous Streams"
|
|
|
|
depends on BT_CTLR_CENTRAL_ISO || BT_CTLR_PERIPHERAL_ISO
|
|
|
|
range 1 64
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Maximum supported total number of CISes.
|
|
|
|
|
|
|
|
config BT_CTLR_CONN_ISO_GROUPS
|
|
|
|
int "LE Connected Isochronous Groups"
|
|
|
|
depends on BT_CTLR_CENTRAL_ISO || BT_CTLR_PERIPHERAL_ISO
|
|
|
|
range 1 240
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Maximum supported CIGs.
|
|
|
|
|
|
|
|
config BT_CTLR_CONN_ISO_STREAMS_PER_GROUP
|
|
|
|
int "LE Connected Isochronous Streams per Group"
|
|
|
|
depends on BT_CTLR_CENTRAL_ISO || BT_CTLR_PERIPHERAL_ISO
|
|
|
|
range 1 31
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Maximum supported CISes per CIG.
|
|
|
|
|
2017-08-25 15:36:41 +02:00
|
|
|
config BT_CTLR_DTM
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable support for Direct Test Mode in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_DTM_HCI
|
|
|
|
bool "Direct Test Mode over HCI"
|
2020-01-03 18:40:32 +01:00
|
|
|
depends on BT_CTLR_DTM_HCI_SUPPORT
|
2017-08-25 15:36:41 +02:00
|
|
|
select BT_CTLR_DTM
|
|
|
|
help
|
|
|
|
Enable support for Direct Test Mode over the HCI transport.
|
|
|
|
|
2020-01-24 15:38:24 +01:00
|
|
|
config BT_CTLR_SMI_RX
|
|
|
|
bool "Stable modulation index - Receiver"
|
|
|
|
depends on BT_CTLR_SMI_SUPPORT
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 SMI RX in the Controller.
|
|
|
|
|
|
|
|
config BT_CTLR_SMI_TX
|
|
|
|
bool "Stable modulation index - Transmitter"
|
|
|
|
depends on BT_CTLR_SMI_SUPPORT
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 SMI TX in the Controller.
|
|
|
|
|
2020-01-27 12:52:04 +01:00
|
|
|
config BT_CTLR_SMI_TX_SETTING
|
|
|
|
bool "Stable modulation index - Transmitter as setting"
|
|
|
|
depends on BT_CTLR_SMI_TX && BT_CTLR_SETTINGS
|
|
|
|
help
|
|
|
|
Enable support for Bluetooth 5.0 SMI TX through a system setting.
|
|
|
|
|
2020-11-10 16:01:31 +01:00
|
|
|
config BT_CTLR_HCI_CODEC_AND_DELAY_INFO
|
|
|
|
bool "Codecs and controller delay information commands"
|
|
|
|
help
|
|
|
|
Enable HCI commands to read information about supported
|
|
|
|
codecs, codec capabilities, and controller delay.
|
|
|
|
|
2020-10-26 06:23:02 -07:00
|
|
|
source "subsys/bluetooth/controller/Kconfig.df"
|
2020-07-12 14:51:27 +02:00
|
|
|
source "subsys/bluetooth/controller/Kconfig.ll_sw_split"
|
2020-01-03 18:40:32 +01:00
|
|
|
|
|
|
|
config BT_CTLR_ASSERT_HANDLER
|
|
|
|
bool "Application Defined Assertion Handler"
|
|
|
|
help
|
|
|
|
This option enables an application-defined sink for the
|
|
|
|
controller assertion mechanism. This must be defined in
|
|
|
|
application code as void \"bt_ctlr_assert_handle(char \*, int)\"
|
|
|
|
and will be invoked whenever the controller code encounters
|
|
|
|
an unrecoverable error.
|
|
|
|
|
2017-08-14 13:45:13 +02:00
|
|
|
endif # BT_CTLR
|
2020-06-05 12:46:41 +05:30
|
|
|
|
|
|
|
config BT_CTLR_DEBUG_PINS_CPUAPP
|
|
|
|
bool "Bluetooth Controller Debug Pins"
|
2021-02-12 09:15:33 +01:00
|
|
|
depends on BOARD_NRF5340DK_NRF5340_CPUAPP
|
2020-06-05 12:46:41 +05:30
|
|
|
help
|
|
|
|
Route debug GPIO toggling for the BLE Controller. Enable this when
|
|
|
|
using Bluetooth Controller Debug Pins in co-processor and the main
|
|
|
|
processor needs to setup and/or route the signals.
|