2016-01-11 20:27:50 +08:00
|
|
|
# Kconfig - NBLE configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
#
|
|
|
|
|
2016-01-28 19:34:52 +08:00
|
|
|
config NBLE
|
|
|
|
bool "Support for custom Nordic Semiconductor BLE protocol"
|
2016-03-17 04:05:56 +08:00
|
|
|
default y if BLUETOOTH_STACK_NBLE
|
2016-01-28 19:34:52 +08:00
|
|
|
default n
|
|
|
|
select BLUETOOTH_PERIPHERAL
|
|
|
|
select BLUETOOTH_CENTRAL
|
|
|
|
select BLUETOOTH_GATT_CLIENT
|
|
|
|
select BLUETOOTH_SMP
|
2016-03-17 04:05:56 +08:00
|
|
|
select SERIAL
|
2016-01-28 19:34:52 +08:00
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select NANO_TIMEOUTS
|
|
|
|
select NET_BUF
|
2016-05-12 20:22:42 +08:00
|
|
|
select NANO_WORKQUEUE
|
|
|
|
select SYSTEM_WORKQUEUE
|
2016-03-17 04:05:56 +08:00
|
|
|
depends on BLUETOOTH_STACK_NBLE
|
2016-01-28 19:34:52 +08:00
|
|
|
help
|
|
|
|
Enables support for using Nordic Semiconductor nRF51 Bluetooth
|
|
|
|
LE chips with a custom firmware. The API for this is a subset of
|
2016-06-15 07:21:50 +08:00
|
|
|
the normal Bluetooth API (include/bluetooth/). This driver can
|
2016-01-28 19:34:52 +08:00
|
|
|
only be enabled if CONFIG_BLUETOOTH has not been enabled.
|
|
|
|
|
2016-02-15 19:04:40 +08:00
|
|
|
A fundamental assumption that the driver makes is that it is
|
|
|
|
run on an architecture with the same ABI (e.g. struct packing
|
|
|
|
& endianess) as the nRF51 chip. The driver cannot be used on
|
|
|
|
any architecture that doesn't fulfill this requirement.
|
|
|
|
|
2016-03-17 04:05:56 +08:00
|
|
|
if NBLE
|
2016-01-11 20:27:50 +08:00
|
|
|
config BLUETOOTH_PERIPHERAL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_CENTRAL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2016-06-01 20:45:25 +08:00
|
|
|
config BLUETOOTH_ATT_PREPARE_COUNT
|
|
|
|
int "Number of ATT prepare write buffers"
|
|
|
|
default 2
|
|
|
|
range 0 64
|
|
|
|
help
|
|
|
|
Number of buffers available for ATT prepare write, setting
|
|
|
|
this to 0 disables GATT long/reliable writes.
|
|
|
|
|
2016-01-11 20:27:50 +08:00
|
|
|
config BLUETOOTH_GATT_CLIENT
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_SMP
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2016-02-09 19:41:21 +08:00
|
|
|
config BLUETOOTH_MAX_CONN
|
|
|
|
int
|
2016-02-10 00:51:38 +08:00
|
|
|
default 6
|
2016-02-09 19:41:21 +08:00
|
|
|
|
2016-01-19 22:54:23 +08:00
|
|
|
config BLUETOOTH_MAX_PAIRED
|
|
|
|
int
|
|
|
|
default 7
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config BLUETOOTH_RX_STACK_SIZE
|
2016-02-12 18:59:55 +08:00
|
|
|
int "Size of the receiving fiber stack"
|
|
|
|
default 1024
|
|
|
|
range 1024 65536
|
|
|
|
help
|
|
|
|
Size of the receiving fiber stack. This is the context from
|
|
|
|
which all event callbacks to the application occur. The
|
|
|
|
default value is sufficient for basic operation, but if the
|
|
|
|
application needs to do advanced things in its callbacks that
|
|
|
|
require extra stack space, this value can be increased to
|
|
|
|
accomodate for that.
|
|
|
|
|
2016-02-11 16:44:06 +08:00
|
|
|
if BLUETOOTH_DEBUG
|
|
|
|
|
2016-02-11 21:20:30 +08:00
|
|
|
config BLUETOOTH_DEBUG_DRIVER
|
|
|
|
bool "Bluetooth driver debug"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the chosen
|
|
|
|
Bluetooth UART driver to Nordic chip.
|
|
|
|
|
2016-02-11 16:44:06 +08:00
|
|
|
config BLUETOOTH_DEBUG_GATT
|
|
|
|
bool "Bluetooth Generic Attribute Profile (GATT) debug"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Generic Attribute Profile (GATT).
|
|
|
|
|
2016-02-16 18:23:29 +08:00
|
|
|
config NBLE_DEBUG_GAP
|
|
|
|
bool "NBLE Generic Access Profile (GAP) debug"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for the Bluetooth
|
|
|
|
Generic Access Profile (GAP) in the interfaces to the
|
|
|
|
Nordic chip.
|
|
|
|
|
2016-04-08 19:50:45 +08:00
|
|
|
config NBLE_DEBUG_CONN
|
|
|
|
bool "NBLE connection debug"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug support for Bluetooth
|
|
|
|
connections in the nble driver.
|
|
|
|
|
2016-02-16 21:16:41 +08:00
|
|
|
config NBLE_DEBUG_RPC
|
|
|
|
bool "NBLE RPC debug"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables debug for RPC interface to the Nordic
|
|
|
|
Bluetooth LE chip.
|
|
|
|
|
2016-02-11 16:44:06 +08:00
|
|
|
endif # BLUETOOTH_DEBUG
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config NBLE_UART_ON_DEV_NAME
|
2016-01-13 23:14:39 +08:00
|
|
|
string "Device Name of UART Device for Nordic BLE"
|
|
|
|
default "UART_0"
|
|
|
|
depends on NBLE
|
|
|
|
help
|
|
|
|
This option specifies the name of UART device to be used
|
|
|
|
for Nordic BLE.
|
|
|
|
|
2016-01-21 18:35:42 +08:00
|
|
|
endif
|