2017-10-20 09:09:03 +00:00
|
|
|
menu Bluetooth
|
|
|
|
|
|
|
|
|
|
|
|
config BT_ENABLED
|
2017-01-10 05:39:43 +00:00
|
|
|
bool "Bluetooth"
|
|
|
|
help
|
2017-03-07 17:20:33 +00:00
|
|
|
Select this option to enable Bluetooth and show the submenu with Bluetooth configuration choices.
|
|
|
|
|
2017-10-20 09:09:03 +00:00
|
|
|
choice BTDM_CONTROLLER_PINNED_TO_CORE_CHOICE
|
|
|
|
prompt "The cpu core which bluetooth controller run"
|
|
|
|
depends on BT_ENABLED && !FREERTOS_UNICORE
|
|
|
|
help
|
|
|
|
Specify the cpu core to run bluetooth controller.
|
|
|
|
Can not specify no-affinity.
|
|
|
|
|
|
|
|
config BTDM_CONTROLLER_PINNED_TO_CORE_0
|
|
|
|
bool "Core 0 (PRO CPU)"
|
|
|
|
config BTDM_CONTROLLER_PINNED_TO_CORE_1
|
|
|
|
bool "Core 1 (APP CPU)"
|
|
|
|
depends on !FREERTOS_UNICORE
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BTDM_CONTROLLER_PINNED_TO_CORE
|
|
|
|
int
|
|
|
|
default 0 if BTDM_CONTROLLER_PINNED_TO_CORE_0
|
|
|
|
default 1 if BTDM_CONTROLLER_PINNED_TO_CORE_1
|
|
|
|
default 0
|
|
|
|
|
|
|
|
choice BTDM_CONTROLLER_HCI_MODE_CHOICE
|
|
|
|
prompt "HCI mode"
|
2017-03-07 17:20:33 +00:00
|
|
|
depends on BT_ENABLED
|
2017-10-20 09:09:03 +00:00
|
|
|
help
|
|
|
|
Speicify HCI mode as VHCI or UART(H4)
|
|
|
|
|
|
|
|
config BTDM_CONTROLLER_HCI_MODE_VHCI
|
|
|
|
bool "VHCI"
|
2018-02-11 19:49:38 +00:00
|
|
|
help
|
2017-10-20 09:09:03 +00:00
|
|
|
Normal option. Mostly, choose this VHCI when bluetooth host run on ESP32, too.
|
|
|
|
|
|
|
|
config BTDM_CONTROLLER_HCI_MODE_UART_H4
|
|
|
|
bool "UART(H4)"
|
|
|
|
help
|
|
|
|
If use external bluetooth host which run on other hardware and use UART as the HCI interface,
|
|
|
|
choose this option.
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
menu "HCI UART(H4) Options"
|
|
|
|
visible if BTDM_CONTROLLER_HCI_MODE_UART_H4
|
|
|
|
|
|
|
|
config BT_HCI_UART_NO
|
|
|
|
int "UART Number for HCI"
|
|
|
|
depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
|
|
|
|
range 1 2
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
Uart number for HCI. The available uart is UART1 and UART2.
|
|
|
|
|
|
|
|
config BT_HCI_UART_BAUDRATE
|
|
|
|
int "UART Baudrate for HCI"
|
|
|
|
depends on BTDM_CONTROLLER_HCI_MODE_UART_H4
|
|
|
|
range 115200 921600
|
|
|
|
default 921600
|
|
|
|
help
|
|
|
|
UART Baudrate for HCI. Please use standard baudrate.
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menuconfig BLUEDROID_ENABLED
|
|
|
|
bool "Bluedroid Enable"
|
|
|
|
depends on BTDM_CONTROLLER_HCI_MODE_VHCI
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This enables the default Bluedroid Bluetooth stack
|
|
|
|
|
|
|
|
choice BLUEDROID_PINNED_TO_CORE_CHOICE
|
|
|
|
prompt "The cpu core which Bluedroid run"
|
|
|
|
depends on BLUEDROID_ENABLED && !FREERTOS_UNICORE
|
|
|
|
help
|
|
|
|
Which the cpu core to run Bluedroid. Can choose core0 and core1.
|
|
|
|
Can not specify no-affinity.
|
|
|
|
|
|
|
|
config BLUEDROID_PINNED_TO_CORE_0
|
|
|
|
bool "Core 0 (PRO CPU)"
|
|
|
|
config BLUEDROID_PINNED_TO_CORE_1
|
|
|
|
bool "Core 1 (APP CPU)"
|
|
|
|
depends on !FREERTOS_UNICORE
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BLUEDROID_PINNED_TO_CORE
|
|
|
|
int
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default 0 if BLUEDROID_PINNED_TO_CORE_0
|
|
|
|
default 1 if BLUEDROID_PINNED_TO_CORE_1
|
|
|
|
default 0
|
2016-08-17 15:08:22 +00:00
|
|
|
|
2016-11-25 15:37:46 +00:00
|
|
|
config BTC_TASK_STACK_SIZE
|
2017-03-18 08:02:54 +00:00
|
|
|
int "Bluetooth event (callback to application) task stack size"
|
2017-03-31 04:51:45 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 08:02:54 +00:00
|
|
|
default 3072
|
|
|
|
help
|
|
|
|
This select btc task stack size
|
2016-11-25 15:37:46 +00:00
|
|
|
|
2016-12-12 20:10:44 +00:00
|
|
|
config BLUEDROID_MEM_DEBUG
|
2017-03-18 08:02:54 +00:00
|
|
|
bool "Bluedroid memory debug"
|
2017-03-31 04:51:45 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 08:02:54 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Bluedroid memory debug
|
2016-12-12 20:10:44 +00:00
|
|
|
|
2017-03-16 14:32:27 +00:00
|
|
|
config CLASSIC_BT_ENABLED
|
2017-03-18 08:02:54 +00:00
|
|
|
bool "Classic Bluetooth"
|
2017-03-31 04:51:45 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-03-18 08:02:54 +00:00
|
|
|
default n
|
2017-06-15 07:48:20 +00:00
|
|
|
help
|
|
|
|
For now this option needs "SMP_ENABLE" to be set to yes
|
2017-03-16 14:32:27 +00:00
|
|
|
|
2017-12-25 11:39:37 +00:00
|
|
|
config A2DP_ENABLE
|
|
|
|
bool "A2DP"
|
2018-01-05 08:48:29 +00:00
|
|
|
depends on CLASSIC_BT_ENABLED
|
|
|
|
default n
|
|
|
|
help
|
2017-12-25 11:39:37 +00:00
|
|
|
Advanced Audio Distrubution Profile
|
2018-02-11 19:49:38 +00:00
|
|
|
|
2017-12-25 11:39:37 +00:00
|
|
|
choice A2DP_ROLE
|
|
|
|
prompt "A2DP ROLE config"
|
|
|
|
depends on A2DP_ENABLE
|
|
|
|
|
|
|
|
config A2DP_SINK_ENABLE
|
|
|
|
bool "SINK"
|
|
|
|
config A2DP_SRC_ENABLE
|
|
|
|
bool "SOURCE"
|
|
|
|
endchoice
|
|
|
|
|
2018-01-30 06:26:53 +00:00
|
|
|
config A2DP_SINK_TASK_STACK_SIZE
|
|
|
|
int "A2DP sink (audio stream decoding) task stack size"
|
|
|
|
depends on A2DP_ENABLE && A2DP_SINK_ENABLE
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
config A2DP_SOURCE_TASK_STACK_SIZE
|
|
|
|
int "A2DP source (audio stream encoding) task stack size"
|
|
|
|
depends on A2DP_ENABLE && A2DP_SRC_ENABLE
|
|
|
|
default 2048
|
|
|
|
|
2018-01-05 08:48:29 +00:00
|
|
|
config BT_SPP_ENABLED
|
2017-12-25 11:39:37 +00:00
|
|
|
bool "SPP"
|
2018-01-05 08:48:29 +00:00
|
|
|
depends on CLASSIC_BT_ENABLED
|
|
|
|
default n
|
|
|
|
help
|
2017-12-25 11:39:37 +00:00
|
|
|
This enables the Serial Port Profile
|
2018-01-05 08:48:29 +00:00
|
|
|
|
2017-04-20 11:18:05 +00:00
|
|
|
config GATTS_ENABLE
|
2017-04-26 02:47:16 +00:00
|
|
|
bool "Include GATT server module(GATTS)"
|
2017-04-20 11:18:05 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
2018-02-11 19:49:38 +00:00
|
|
|
default y
|
2017-04-20 11:18:05 +00:00
|
|
|
help
|
2017-04-26 02:47:16 +00:00
|
|
|
This option can be disabled when the app work only on gatt client mode
|
2017-04-20 11:18:05 +00:00
|
|
|
|
|
|
|
config GATTC_ENABLE
|
2017-04-26 02:47:16 +00:00
|
|
|
bool "Include GATT client module(GATTC)"
|
2017-04-20 11:18:05 +00: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 07:48:20 +00:00
|
|
|
config BLE_SMP_ENABLE
|
|
|
|
bool "Include BLE security module(SMP)"
|
2017-04-20 11:18:05 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option can be close when the app not used the ble security connect.
|
|
|
|
|
2018-02-11 19:49:38 +00:00
|
|
|
config BLE_ENABLE_SRVCHG_REG
|
|
|
|
bool "Enable automatic service change notify registration"
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option enables automatic registration of service change notification
|
|
|
|
after connect. Be careful, it can may collide with your command sequences
|
|
|
|
and lead to GATT_BUSY.
|
|
|
|
|
2017-04-26 08:23:45 +00: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 09:27:21 +00:00
|
|
|
config BT_ACL_CONNECTIONS
|
|
|
|
int "BT/BLE MAX ACL CONNECTIONS(1~7)"
|
2017-04-20 11:18:05 +00:00
|
|
|
depends on BLUEDROID_ENABLED
|
2017-04-26 09:27:21 +00:00
|
|
|
range 1 7
|
|
|
|
default 4
|
2018-02-11 19:49:38 +00:00
|
|
|
help
|
2017-04-26 02:47:16 +00:00
|
|
|
Maximum BT/BLE connection count
|
2017-04-20 11:18:05 +00:00
|
|
|
|
2017-10-18 07:34:43 +00:00
|
|
|
config BT_ALLOCATION_FROM_SPIRAM_FIRST
|
|
|
|
bool "BT/BLE will first malloc the memory from the PSRAM"
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This select can save the internal RAM if there have the PSRAM
|
|
|
|
|
|
|
|
config BT_BLE_DYNAMIC_ENV_MEMORY
|
|
|
|
bool "Use dynamic memory allocation in BT/BLE stack"
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This select can make the allocation of memory will become more flexible
|
|
|
|
|
2017-06-15 07:48:20 +00:00
|
|
|
config SMP_ENABLE
|
|
|
|
bool
|
|
|
|
depends on BLUEDROID_ENABLED
|
|
|
|
default CLASSIC_BT_ENABLED || BLE_SMP_ENABLE
|
2018-02-11 19:49:38 +00:00
|
|
|
|
2016-09-21 01:04:16 +00:00
|
|
|
# Memory reserved at start of DRAM for Bluetooth stack
|
|
|
|
config BT_RESERVE_DRAM
|
|
|
|
hex
|
2017-01-10 05:04:04 +00:00
|
|
|
default 0x10000 if BT_ENABLED
|
2016-09-28 05:24:58 +00:00
|
|
|
default 0
|
2017-10-20 09:09:03 +00:00
|
|
|
|
|
|
|
endmenu
|