2017-01-10 00:39:43 -05:00
|
|
|
menuconfig BT_ENABLED
|
|
|
|
bool "Bluetooth"
|
|
|
|
help
|
2017-03-07 12:20:33 -05:00
|
|
|
Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
|
|
|
|
|
2017-03-31 00:51:45 -04:00
|
|
|
menuconfig BLUEDROID_ENABLED
|
2017-03-07 12:20:33 -05:00
|
|
|
bool "Bluedroid Bluetooth stack enabled"
|
|
|
|
depends on BT_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This enables the default Bluedroid Bluetooth stack
|
2016-08-17 11:08:22 -04:00
|
|
|
|
2016-11-25 10:37:46 -05:00
|
|
|
config BTC_TASK_STACK_SIZE
|
2017-03-18 04:02:54 -04:00
|
|
|
int "Bluetooth event (callback to application) task stack size"
|
2017-03-31 00:51:45 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 04:02:54 -04:00
|
|
|
default 3072
|
|
|
|
help
|
|
|
|
This select btc task stack size
|
2016-11-25 10:37:46 -05:00
|
|
|
|
2016-12-12 15:10:44 -05:00
|
|
|
config BLUEDROID_MEM_DEBUG
|
2017-03-18 04:02:54 -04:00
|
|
|
bool "Bluedroid memory debug"
|
2017-03-31 00:51:45 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 04:02:54 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Bluedroid memory debug
|
2016-12-12 15:10:44 -05:00
|
|
|
|
2017-03-16 10:32:27 -04:00
|
|
|
config CLASSIC_BT_ENABLED
|
2017-03-18 04:02:54 -04:00
|
|
|
bool "Classic Bluetooth"
|
2017-03-31 00:51:45 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 04:02:54 -04:00
|
|
|
default n
|
2017-06-15 03:48:20 -04:00
|
|
|
help
|
|
|
|
For now this option needs "SMP_ENABLE" to be set to yes
|
2017-03-16 10:32:27 -04:00
|
|
|
|
2017-02-21 04:46:59 -05:00
|
|
|
config BT_DRAM_RELEASE
|
2017-03-18 04:02:54 -04:00
|
|
|
bool "Release DRAM from Classic BT controller"
|
2017-03-31 00:51:45 -04:00
|
|
|
depends on BT_ENABLED && (!BLUEDROID_ENABLED || (BLUEDROID_ENABLED && !CLASSIC_BT_ENABLED))
|
2017-03-18 04:02:54 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option should only be used when BLE only.
|
2017-03-30 09:16:11 -04:00
|
|
|
Enabling this option will release about 30K DRAM from Classic BT.
|
2017-03-18 04:02:54 -04:00
|
|
|
The released DRAM will be used as system heap memory.
|
2017-02-21 04:46:59 -05:00
|
|
|
|
2017-04-20 07:18:05 -04:00
|
|
|
config GATTS_ENABLE
|
2017-04-25 22:47:16 -04:00
|
|
|
bool "Include GATT server module(GATTS)"
|
2017-04-20 07:18:05 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
2017-04-25 22:47:16 -04:00
|
|
|
This option can be disabled when the app work only on gatt client mode
|
2017-04-20 07:18:05 -04:00
|
|
|
|
|
|
|
config GATTC_ENABLE
|
2017-04-25 22:47:16 -04:00
|
|
|
bool "Include GATT client module(GATTC)"
|
2017-04-20 07:18:05 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option can be close when the app work only on gatt server mode
|
|
|
|
|
2017-06-15 03:48:20 -04:00
|
|
|
config BLE_SMP_ENABLE
|
|
|
|
bool "Include BLE security module(SMP)"
|
2017-04-20 07:18:05 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option can be close when the app not used the ble security connect.
|
|
|
|
|
2017-04-26 04:23:45 -04:00
|
|
|
config BT_STACK_NO_LOG
|
|
|
|
bool "Close the bluedroid bt stack log print"
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This select can save the rodata code size
|
|
|
|
|
2017-04-26 05:27:21 -04:00
|
|
|
config BT_ACL_CONNECTIONS
|
|
|
|
int "BT/BLE MAX ACL CONNECTIONS(1~7)"
|
2017-04-20 07:18:05 -04:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-04-26 05:27:21 -04:00
|
|
|
range 1 7
|
|
|
|
default 4
|
2017-04-20 07:18:05 -04:00
|
|
|
help
|
2017-04-25 22:47:16 -04:00
|
|
|
Maximum BT/BLE connection count
|
2017-04-20 07:18:05 -04:00
|
|
|
|
2017-04-05 09:19:15 -04:00
|
|
|
#disable now for app cpu due to a known issue
|
2017-03-24 02:57:07 -04:00
|
|
|
config BTDM_CONTROLLER_RUN_APP_CPU
|
|
|
|
bool "Run controller on APP CPU"
|
|
|
|
depends on BT_ENABLED && !FREERTOS_UNICORE && 0
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Run controller on APP CPU.
|
2017-03-16 05:14:20 -04:00
|
|
|
|
2017-04-05 09:19:15 -04:00
|
|
|
config BTDM_CONTROLLER_RUN_CPU
|
|
|
|
int
|
|
|
|
depends on BT_ENABLED
|
|
|
|
default 1 if BTDM_CONTROLLER_RUN_APP_CPU
|
|
|
|
default 0
|
|
|
|
|
|
|
|
menuconfig BT_HCI_UART
|
2017-03-16 05:14:20 -04:00
|
|
|
bool "HCI use UART as IO"
|
2017-04-10 04:12:21 -04:00
|
|
|
depends on BT_ENABLED && !BLUEDROID_ENABLED
|
2017-03-16 05:14:20 -04:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Default HCI use VHCI, if this option choose, HCI will use UART(0/1/2) as IO.
|
|
|
|
Besides, it can set uart number and uart baudrate.
|
|
|
|
|
2017-04-05 09:19:15 -04:00
|
|
|
config BT_HCI_UART_NO
|
2017-03-16 05:14:20 -04:00
|
|
|
int "UART Number for HCI"
|
2017-04-05 09:19:15 -04:00
|
|
|
depends on BT_HCI_UART
|
2017-03-16 05:14:20 -04:00
|
|
|
range 1 2
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Uart number for HCI.
|
|
|
|
|
2017-04-05 09:19:15 -04:00
|
|
|
config BT_HCI_UART_BAUDRATE
|
2017-03-16 05:14:20 -04:00
|
|
|
int "UART Baudrate for HCI"
|
2017-04-05 09:19:15 -04:00
|
|
|
depends on BT_HCI_UART
|
2017-03-16 05:14:20 -04:00
|
|
|
range 115200 921600
|
|
|
|
default 921600
|
|
|
|
help
|
|
|
|
UART Baudrate for HCI. Please use standard baudrate.
|
2017-02-21 04:46:59 -05:00
|
|
|
|
2017-06-15 03:48:20 -04:00
|
|
|
config SMP_ENABLE
|
|
|
|
bool
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
|
|
|
|
|
2016-09-20 21:04:16 -04:00
|
|
|
# Memory reserved at start of DRAM for Bluetooth stack
|
|
|
|
config BT_RESERVE_DRAM
|
|
|
|
hex
|
2017-01-10 00:04:04 -05:00
|
|
|
default 0x10000 if BT_ENABLED
|
2016-09-28 01:24:58 -04:00
|
|
|
default 0
|