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-21 18:35:42 +08:00
|
|
|
if !BLUETOOTH
|
2016-01-11 20:27:50 +08:00
|
|
|
config BLUETOOTH_PERIPHERAL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_CENTRAL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_GATT_CLIENT
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BLUETOOTH_SMP
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2016-01-19 22:54:23 +08:00
|
|
|
config BLUETOOTH_MAX_PAIRED
|
|
|
|
int
|
|
|
|
default 7
|
|
|
|
|
2016-01-13 23:14:39 +08:00
|
|
|
config NBLE_UART_ON_DEV_NAME
|
|
|
|
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.
|
|
|
|
|
|
|
|
config NBLE_UART_IRQ
|
|
|
|
int "IRQ of UART Device for Nordic BLE"
|
|
|
|
depends on NBLE
|
|
|
|
help
|
|
|
|
This option specifies the IRQ of UART device to be used
|
|
|
|
for Nordic BLE.
|
|
|
|
|
|
|
|
config NBLE_UART_IRQ_PRI
|
|
|
|
int "IRQ Priority of UART Device for Nordic BLE"
|
|
|
|
depends on NBLE
|
|
|
|
help
|
|
|
|
This option specifies the IRQ priority of UART device to be used
|
|
|
|
for Nordic BLE.
|
|
|
|
|
2016-01-11 20:27:50 +08:00
|
|
|
config NBLE
|
|
|
|
bool "Support for custom Nordic Semiconductor BLE protocol"
|
|
|
|
default n
|
|
|
|
select BLUETOOTH_PERIPHERAL
|
|
|
|
select BLUETOOTH_CENTRAL
|
|
|
|
select BLUETOOTH_GATT_CLIENT
|
|
|
|
select BLUETOOTH_SMP
|
2016-01-13 23:14:39 +08:00
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select NET_BUF
|
2016-01-11 20:27:50 +08:00
|
|
|
help
|
2016-01-21 18:20:35 +08:00
|
|
|
Enables support for using Nordic Semiconductor nRF51 Bluetooth
|
2016-01-11 20:27:50 +08:00
|
|
|
LE chips with a custom firmware. The API for this is a subset of
|
|
|
|
the normal Bluetooth API (include/bluetooth/*.h). This driver can
|
|
|
|
only be enabled if CONFIG_BLUETOOTH has not been enabled.
|
2016-01-21 18:35:42 +08:00
|
|
|
endif
|