219 lines
5.3 KiB
Plaintext
219 lines
5.3 KiB
Plaintext
# Kconfig - Bluetooth LE stack configuration options
|
|
|
|
#
|
|
# Copyright (c) 2015 Intel Corporation
|
|
#
|
|
# 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
menuconfig BLUETOOTH
|
|
bool "Bluetooth LE support"
|
|
default n
|
|
select NANO_TIMEOUTS
|
|
select NET_BUF
|
|
help
|
|
This option enables Bluetooth Low Energy support.
|
|
|
|
if BLUETOOTH
|
|
config BLUETOOTH_CONN
|
|
bool
|
|
default n
|
|
|
|
config BLUETOOTH_PERIPHERAL
|
|
bool "Peripheral Role support"
|
|
default n
|
|
select BLUETOOTH_CONN
|
|
|
|
config BLUETOOTH_CENTRAL
|
|
bool "Central Role support"
|
|
default n
|
|
select BLUETOOTH_CONN
|
|
|
|
config BLUETOOTH_DEBUG
|
|
bool "Bluetooth LE debug support"
|
|
select STDOUT_CONSOLE
|
|
default n
|
|
help
|
|
This option enables Bluetooth debug going to standard
|
|
serial console.
|
|
|
|
config BLUETOOTH_DEBUG_HCI_CORE
|
|
bool "Bluetooth HCI core debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for Bluetooth HCI
|
|
core.
|
|
|
|
config BLUETOOTH_HCI_CMD_COUNT
|
|
int "Number of HCI command buffers"
|
|
default 2
|
|
range 2 64
|
|
help
|
|
Number of buffers available for HCI commands.
|
|
|
|
config BLUETOOTH_HCI_CMD_SIZE
|
|
int "Size of HCI command buffers"
|
|
default 68
|
|
range 68 260
|
|
help
|
|
Maximum size of each HCI command buffer.
|
|
|
|
config BLUETOOTH_HCI_EVT_COUNT
|
|
int "Number of HCI event buffers"
|
|
default 6
|
|
range 2 64
|
|
help
|
|
Number of buffers available for HCI events. This number should
|
|
ideally be at least as large as BLUETOOTH_ACL_OUT_COUNT to make
|
|
sure we've got enough buffers to handle bursts of Number of
|
|
Completed Packets HCI events.
|
|
|
|
config BLUETOOTH_HCI_EVT_SIZE
|
|
int "Size of HCI event buffers"
|
|
default 72
|
|
range 72 260
|
|
help
|
|
Maximum size of each HCI event buffer.
|
|
|
|
if BLUETOOTH_CONN
|
|
config BLUETOOTH_ACL_IN_COUNT
|
|
int "Number of incoming ACL data buffers"
|
|
default 5
|
|
range 1 16
|
|
help
|
|
Number of buffers available for incoming ACL data.
|
|
|
|
config BLUETOOTH_ACL_IN_SIZE
|
|
int "Size of incoming ACL data buffers"
|
|
default 74 if BLUETOOTH_SMP
|
|
default 32 if !BLUETOOTH_SMP
|
|
range 74 1300 if BLUETOOTH_SMP
|
|
range 32 1300 if !BLUETOOTH_SMP
|
|
help
|
|
Maximum size of each incoming ACL data buffer.
|
|
|
|
config BLUETOOTH_ACL_OUT_COUNT
|
|
int "Number of incoming ACL data buffers"
|
|
default 5
|
|
range 1 16
|
|
help
|
|
Number of buffers available for incoming ACL data.
|
|
|
|
config BLUETOOTH_ACL_OUT_SIZE
|
|
int "Size of incoming ACL data buffers"
|
|
default 74 if BLUETOOTH_SMP
|
|
default 32 if !BLUETOOTH_SMP
|
|
range 74 1300 if BLUETOOTH_SMP
|
|
range 32 1300 if !BLUETOOTH_SMP
|
|
help
|
|
Maximum size of each outgoing ACL data buffer.
|
|
endif # BLUETOOTH_CONN
|
|
|
|
if BLUETOOTH_PERIPHERAL || BLUETOOTH_CENTRAL
|
|
config BLUETOOTH_SMP
|
|
bool "Security Manager Protocol support"
|
|
default n
|
|
|
|
config BLUETOOTH_L2CAP_DYNAMIC_CHANNEL
|
|
bool "L2CAP Dynamic Channel support"
|
|
default n
|
|
|
|
config BLUETOOTH_SIGNING
|
|
bool "Data signing support"
|
|
default n
|
|
depends on BLUETOOTH_SMP
|
|
help
|
|
This option enables data signing which is used for transferring
|
|
authenticated data in an unencrypted connection.
|
|
|
|
config BLUETOOTH_GATT_CLIENT
|
|
bool "GATT client support"
|
|
default n
|
|
|
|
config BLUETOOTH_MAX_CONN
|
|
int "Maximum number of simultaneous connections"
|
|
depends on BLUETOOTH_CONN
|
|
default 1
|
|
range 1 16
|
|
help
|
|
Maximum number of simultaneous Bluetooth connections
|
|
supported. The minimum (and default) number is 1.
|
|
|
|
config BLUETOOTH_MAX_PAIRED
|
|
int "Maximum number of paired devices"
|
|
depends on BLUETOOTH_CONN
|
|
default 1
|
|
range 1 32
|
|
help
|
|
Maximum number of paired Bluetooth devices. The minimum (and
|
|
default) number is 1.
|
|
|
|
config BLUETOOTH_DEBUG_CONN
|
|
bool "Bluetooth connection debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for Bluetooth
|
|
connection handling.
|
|
|
|
config BLUETOOTH_DEBUG_KEYS
|
|
bool "Bluetooth security keys debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for the handling of
|
|
Bluetooth security keys.
|
|
|
|
config BLUETOOTH_DEBUG_L2CAP
|
|
bool "Bluetooth L2CAP debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for the Bluetooth
|
|
L2ACP layer.
|
|
|
|
config BLUETOOTH_DEBUG_SMP
|
|
bool "Bluetooth Security Manager Protocol (SMP) debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for the Bluetooth
|
|
Security Manager Protocol (SMP).
|
|
|
|
config BLUETOOTH_SMP_SELFTEST
|
|
bool "Bluetooth SMP self tests executed on init"
|
|
depends on BLUETOOTH_DEBUG_SMP
|
|
default n
|
|
help
|
|
This option enables SMP self-tests executed on startup
|
|
to verify security and crypto functions.
|
|
|
|
config BLUETOOTH_DEBUG_ATT
|
|
bool "Bluetooth Attribute Protocol (ATT) debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for the Bluetooth
|
|
Attribute Protocol (ATT).
|
|
|
|
config BLUETOOTH_DEBUG_GATT
|
|
bool "Bluetooth Generic Attribute Profile (GATT) debug"
|
|
depends on BLUETOOTH_DEBUG
|
|
default n
|
|
help
|
|
This option enables debug support for the Bluetooth
|
|
Generic Attribute Profile (GATT).
|
|
endif # BLUETOOTH_PERIPHERAL || BLUETOOTH_CENTRAL
|
|
endif # BLUETOOTH
|