2019-11-01 13:45:29 +01:00
|
|
|
# Bluetooth drivers configuration options
|
2016-10-27 20:30:52 +03:00
|
|
|
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-10-27 20:30:52 +03:00
|
|
|
|
2016-10-27 16:55:01 +03:00
|
|
|
comment "Bluetooth HCI Driver Options"
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_UART
|
2016-10-27 16:55:01 +03:00
|
|
|
bool
|
|
|
|
|
2018-05-15 12:55:50 +03:00
|
|
|
choice BT_HCI_BUS_TYPE
|
2016-10-27 16:55:01 +03:00
|
|
|
prompt "Bluetooth HCI driver"
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_H4
|
2016-10-27 16:55:01 +03:00
|
|
|
bool "H:4 UART"
|
|
|
|
select UART_INTERRUPT_DRIVEN
|
2017-08-09 09:21:11 +03:00
|
|
|
select BT_UART
|
|
|
|
select BT_RECV_IS_RX_THREAD
|
2016-11-08 14:25:36 +02:00
|
|
|
depends on SERIAL
|
2016-10-27 16:55:01 +03:00
|
|
|
help
|
|
|
|
Bluetooth H:4 UART driver. Requires hardware flow control
|
|
|
|
lines to be available.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_H5
|
2016-10-27 16:55:01 +03:00
|
|
|
bool "H:5 UART [EXPERIMENTAL]"
|
|
|
|
select UART_INTERRUPT_DRIVEN
|
2017-08-09 09:21:11 +03:00
|
|
|
select BT_UART
|
2021-10-15 14:14:16 +02:00
|
|
|
select EXPERIMENTAL
|
2016-11-08 14:25:36 +02:00
|
|
|
depends on SERIAL
|
2016-10-27 16:55:01 +03:00
|
|
|
help
|
|
|
|
Bluetooth three-wire (H:5) UART driver. Implementation of HCI
|
|
|
|
Three-Wire UART Transport Layer.
|
|
|
|
|
2019-11-15 11:35:33 +01:00
|
|
|
config BT_RPMSG
|
|
|
|
bool "HCI using RPMsg"
|
2022-02-25 16:26:23 +01:00
|
|
|
select IPC_SERVICE
|
|
|
|
select MBOX
|
2019-11-15 11:35:33 +01:00
|
|
|
help
|
|
|
|
Bluetooth HCI driver for communication with another CPU
|
|
|
|
using RPMsg framework.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SPI
|
2017-01-09 14:16:07 +00:00
|
|
|
bool "SPI HCI"
|
2017-06-06 21:26:14 -05:00
|
|
|
depends on SPI
|
2017-01-09 14:16:07 +00:00
|
|
|
help
|
|
|
|
Supports Bluetooth ICs using SPI as the communication protocol.
|
2017-04-21 10:29:51 -07:00
|
|
|
HCI packets are sent and received as single Byte transfers,
|
2017-01-09 14:16:07 +00:00
|
|
|
prepended after a known header. Headers may vary per device, so
|
2017-04-21 10:29:51 -07:00
|
|
|
additional platform specific knowledge may need to be added as
|
2017-01-25 22:24:45 -02:00
|
|
|
devices are.
|
2017-01-09 14:16:07 +00:00
|
|
|
|
2019-02-27 14:19:25 +01:00
|
|
|
config BT_STM32_IPM
|
|
|
|
bool "IPM HCI"
|
|
|
|
select USE_STM32_HAL_CORTEX
|
2020-05-08 15:36:26 +02:00
|
|
|
select HAS_STM32LIB
|
2019-02-27 14:19:25 +01:00
|
|
|
help
|
|
|
|
TODO
|
|
|
|
|
2018-05-25 13:32:34 +03:00
|
|
|
config BT_USERCHAN
|
|
|
|
bool "HCI User Channel based driver"
|
|
|
|
depends on BOARD_NATIVE_POSIX
|
|
|
|
help
|
|
|
|
This driver provides access to the local Linux host's Bluetooth
|
|
|
|
adapter using a User Channel HCI socket to the Linux kernel. It
|
|
|
|
is only intended to be used with the native POSIX build of Zephyr.
|
|
|
|
The Bluetooth adapter must be powered off in order for Zephyr to
|
|
|
|
be able to use it.
|
|
|
|
|
2021-04-01 00:51:49 -03:00
|
|
|
config BT_ESP32
|
|
|
|
bool "ESP32 HCI driver"
|
|
|
|
help
|
|
|
|
Espressif HCI bluetooth interface
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_NO_DRIVER
|
2016-10-27 16:55:01 +03:00
|
|
|
bool "No default HCI driver"
|
|
|
|
help
|
|
|
|
This is intended for unit tests where no internal driver
|
|
|
|
should be selected.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
if BT_SPI
|
2017-01-09 14:16:07 +00:00
|
|
|
|
2020-09-10 14:07:23 +02:00
|
|
|
config BT_SPI_INIT_PRIORITY
|
|
|
|
int "BT SPI init priority"
|
|
|
|
default 75
|
|
|
|
|
2018-06-26 12:07:23 +02:00
|
|
|
config BT_BLUENRG_ACI
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "ACI message with with BlueNRG-based devices"
|
2018-06-26 12:07:23 +02:00
|
|
|
help
|
|
|
|
Enable support for devices compatible with the BlueNRG Bluetooth
|
|
|
|
Stack. Current driver supports: ST BLUENRG-MS.
|
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
config BT_SPI_BLUENRG
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Compatibility with BlueNRG-based devices"
|
2017-01-25 22:24:45 -02:00
|
|
|
help
|
|
|
|
Enable support for devices compatible with the BlueNRG Bluetooth
|
2018-06-26 12:07:23 +02:00
|
|
|
Stack. Current driver supports: ST BLUENRG-MS.
|
2017-01-25 22:24:45 -02:00
|
|
|
|
2017-08-09 09:21:11 +03:00
|
|
|
endif # BT_SPI
|
2019-11-15 11:35:33 +01:00
|
|
|
|
2020-03-16 10:58:10 +01:00
|
|
|
config BT_STM32_IPM_RX_STACK_SIZE
|
|
|
|
int "STM32 IPM stack size for RX thread"
|
|
|
|
depends on BT_STM32_IPM
|
2020-08-26 09:06:15 +02:00
|
|
|
default 512
|
2020-03-16 10:58:10 +01:00
|
|
|
|
2020-09-09 21:28:29 +05:30
|
|
|
config BT_DRIVER_QUIRK_NO_AUTO_DLE
|
|
|
|
bool "Host auto-initiated Data Length Update quirk"
|
|
|
|
depends on BT_AUTO_DATA_LEN_UPDATE
|
2022-02-25 16:26:23 +01:00
|
|
|
default y if BT_RPMSG || BT_ESP32
|
2020-09-09 21:28:29 +05:30
|
|
|
help
|
|
|
|
Enable the quirk wherein BT Host stack will auto-initiate Data Length
|
|
|
|
Update procedure for new connections for controllers that do not
|
|
|
|
auto-initiate the procedure if the default data length parameters are
|
|
|
|
not equal to the initial parameters.
|
|
|
|
|
|
|
|
This has to be enabled when the BLE controller connected is Zephyr
|
|
|
|
open source controller.
|
2022-01-20 15:48:42 +02:00
|
|
|
|
|
|
|
config BT_HCI_SETUP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable the HCI vendor-specific Setup function.
|
|
|
|
|
|
|
|
This option has to be enabled when the BT Controller requires execution
|
|
|
|
of the vendor-specific commands sequence to initialize the BT Controller
|
|
|
|
before the BT Host executes a Reset sequence.
|
|
|
|
|
|
|
|
The user should generally avoid changing it via menuconfig or in
|
|
|
|
configuration files. This option are enabled by the vendor-specific
|
|
|
|
HCI extension, where the Setup function is implemented.
|