2015-05-20 18:40:39 +02:00
|
|
|
# Kconfig - Bluetooth LE driver configuration options
|
2015-05-11 04:52:56 +02:00
|
|
|
|
|
|
|
#
|
2016-06-10 11:10:18 +02:00
|
|
|
# Copyright (c) 2015-2016 Intel Corporation
|
2015-05-11 04:52:56 +02:00
|
|
|
#
|
2015-10-06 18:00:37 +02:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-11 04:52:56 +02:00
|
|
|
#
|
2015-10-06 18:00:37 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-11 04:52:56 +02:00
|
|
|
#
|
2015-10-06 18:00:37 +02:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-11 04:52:56 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bluetooth options
|
|
|
|
#
|
2016-03-16 21:05:56 +01:00
|
|
|
|
|
|
|
if BLUETOOTH
|
|
|
|
|
|
|
|
menu "Bluetooth Drivers"
|
|
|
|
|
2016-08-09 10:13:52 +02:00
|
|
|
if BLUETOOTH_STACK_HCI || BLUETOOTH_STACK_HCI_RAW
|
2016-03-16 21:05:56 +01:00
|
|
|
|
|
|
|
comment "Bluetooth HCI Driver Options"
|
2015-05-11 04:52:56 +02:00
|
|
|
|
2015-12-07 18:48:48 +01:00
|
|
|
config BLUETOOTH_UART
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Bluetooth HCI driver"
|
|
|
|
default BLUETOOTH_H4
|
|
|
|
|
|
|
|
config BLUETOOTH_H4
|
|
|
|
bool "H:4 UART"
|
2016-03-16 21:05:56 +01:00
|
|
|
select SERIAL
|
2015-05-11 04:52:56 +02:00
|
|
|
select UART_INTERRUPT_DRIVEN
|
2015-12-07 18:48:48 +01:00
|
|
|
select BLUETOOTH_UART
|
2016-04-09 10:29:50 +02:00
|
|
|
select BLUETOOTH_HOST_BUFFERS
|
2015-05-11 04:52:56 +02:00
|
|
|
help
|
2015-12-07 18:48:48 +01:00
|
|
|
Bluetooth H:4 UART driver. Requires hardware flow control
|
|
|
|
lines to be available.
|
|
|
|
|
2015-12-08 09:30:52 +01:00
|
|
|
config BLUETOOTH_H5
|
|
|
|
bool "H:5 UART [EXPERIMENTAL]"
|
2016-03-16 21:05:56 +01:00
|
|
|
select SERIAL
|
2015-12-08 09:30:52 +01:00
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select BLUETOOTH_UART
|
2016-04-09 10:29:50 +02:00
|
|
|
select BLUETOOTH_HOST_BUFFERS
|
2016-07-06 14:02:23 +02:00
|
|
|
select NANO_WORKQUEUE
|
|
|
|
select SYSTEM_WORKQUEUE
|
2015-12-08 09:30:52 +01:00
|
|
|
help
|
|
|
|
Bluetooth three-wire (H:5) UART driver. Implementation of HCI
|
|
|
|
Three-Wire UART Transport Layer.
|
|
|
|
|
2016-08-15 12:01:06 +02:00
|
|
|
config BLUETOOTH_CONTROLLER
|
|
|
|
bool "Controller"
|
|
|
|
select BLUETOOTH_HOST_BUFFERS
|
|
|
|
help
|
|
|
|
Enables support for SoC native controller implementation.
|
|
|
|
|
2015-12-08 07:57:28 +01:00
|
|
|
config BLUETOOTH_NO_DRIVER
|
2015-12-07 18:48:48 +01:00
|
|
|
bool "No default HCI driver"
|
|
|
|
help
|
|
|
|
This is intended for unit tests where no internal driver
|
|
|
|
should be selected.
|
|
|
|
|
|
|
|
endchoice
|
2015-05-11 04:52:56 +02:00
|
|
|
|
2016-05-25 01:17:13 +02:00
|
|
|
config BLUETOOTH_HOST_BUFFERS
|
2016-04-09 10:29:50 +02:00
|
|
|
bool "Host managed incoming data buffers"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable this to have the host stack manage incoming ACL data
|
|
|
|
and HCI event buffers. This makes sense for all HCI drivers
|
|
|
|
that talk to a controller running on a different CPU.
|
|
|
|
|
|
|
|
If the controller resides in the same address space it may
|
|
|
|
make sense to have the lower layers manage these buffers, in
|
|
|
|
which case this option can be left disabled.
|
|
|
|
|
2015-12-08 07:57:01 +01:00
|
|
|
config BLUETOOTH_DEBUG_DRIVER
|
|
|
|
bool "Bluetooth driver debug"
|
2016-08-15 12:01:06 +02:00
|
|
|
depends on BLUETOOTH_DEBUG && (BLUETOOTH_UART || BLUETOOTH_CONTROLLER)
|
2015-05-27 20:26:49 +02:00
|
|
|
default n
|
|
|
|
help
|
2015-12-08 07:57:01 +01:00
|
|
|
This option enables debug support for the chosen
|
|
|
|
Bluetooth HCI driver
|
2015-05-27 20:26:49 +02:00
|
|
|
|
2016-05-25 01:17:13 +02:00
|
|
|
config BLUETOOTH_UART_ON_DEV_NAME
|
2015-12-01 17:42:20 +01:00
|
|
|
string "Device Name of UART Device for Bluetooth"
|
2016-04-17 03:02:30 +02:00
|
|
|
default "UART_0"
|
2015-12-01 17:42:20 +01:00
|
|
|
depends on BLUETOOTH_UART
|
|
|
|
help
|
|
|
|
This option specifies the name of UART device to be used
|
|
|
|
for Bluetooth.
|
|
|
|
|
2015-11-05 18:41:45 +01:00
|
|
|
# Headroom that the driver needs for sending and receiving buffers.
|
|
|
|
# Add a new 'default' entry for each new driver.
|
|
|
|
|
|
|
|
# Needed headroom for outgoing buffers (to controller)
|
|
|
|
config BLUETOOTH_HCI_SEND_RESERVE
|
|
|
|
int
|
|
|
|
# Even if no driver is selected the following default is still
|
|
|
|
# needed e.g. for unit tests.
|
|
|
|
default 0
|
2016-03-25 22:30:50 +01:00
|
|
|
default 0 if BLUETOOTH_H4
|
|
|
|
default 1 if BLUETOOTH_H5
|
2015-11-05 18:41:45 +01:00
|
|
|
|
|
|
|
# Needed headroom for incoming buffers (from controller)
|
|
|
|
config BLUETOOTH_HCI_RECV_RESERVE
|
|
|
|
int
|
|
|
|
# Even if no driver is selected the following default is still
|
|
|
|
# needed e.g. for unit tests.
|
|
|
|
default 0
|
2016-03-25 22:30:50 +01:00
|
|
|
default 0 if BLUETOOTH_H4
|
|
|
|
default 0 if BLUETOOTH_H5
|
2015-11-05 18:41:45 +01:00
|
|
|
|
2016-03-16 21:05:56 +01:00
|
|
|
endif # BLUETOOTH_STACK_HCI
|
|
|
|
|
2016-04-05 13:01:16 +02:00
|
|
|
source "drivers/bluetooth/nble/Kconfig"
|
2016-03-16 21:05:56 +01:00
|
|
|
|
2016-08-15 12:01:06 +02:00
|
|
|
source "drivers/bluetooth/controller/Kconfig"
|
|
|
|
|
2016-04-05 08:42:30 +02:00
|
|
|
config BLUETOOTH_NRF51_PM
|
2016-04-07 09:50:52 +02:00
|
|
|
bool "nRF51 Power Management [EXPERIMENTAL]"
|
2016-04-05 08:42:30 +02:00
|
|
|
depends on BLUETOOTH_H4 || NBLE
|
|
|
|
help
|
|
|
|
Power Management support for Nordic BLE nRF51 chip. Allows to enable,
|
|
|
|
disable the chip and handle wakeups.
|
|
|
|
|
2016-04-18 10:45:45 +02:00
|
|
|
config BLUETOOTH_WAIT_NOP
|
|
|
|
bool "Wait for \"NOP\" Command Complete event during init"
|
2016-08-15 12:01:06 +02:00
|
|
|
depends on !BLUETOOTH_CONTROLLER
|
2016-04-18 10:45:45 +02:00
|
|
|
help
|
|
|
|
Some controllers emit a Command Complete event for the NOP
|
|
|
|
opcode to indicate that they're ready to receive commands.
|
|
|
|
This option should be selected if the controller used
|
|
|
|
exhibits such behavior.
|
|
|
|
|
2015-05-11 04:52:56 +02:00
|
|
|
endmenu
|
2016-03-16 21:05:56 +01:00
|
|
|
|
|
|
|
endif # BLUETOOTH
|