mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
Component/bt: fix crash without SMP when deinit bluedroid
- fix crash without SMP when bluedroid deinit - modify default menuconfig in blufi demo
This commit is contained in:
@@ -44,7 +44,9 @@ static void btc_enable_bluetooth(void)
|
|||||||
|
|
||||||
static void btc_disable_bluetooth(void)
|
static void btc_disable_bluetooth(void)
|
||||||
{
|
{
|
||||||
|
#if (SMP_INCLUDED)
|
||||||
btc_config_shut_down();
|
btc_config_shut_down();
|
||||||
|
#endif
|
||||||
if (BTA_DisableBluetooth() != BTA_SUCCESS) {
|
if (BTA_DisableBluetooth() != BTA_SUCCESS) {
|
||||||
future_ready(*btc_main_get_future_p(BTC_MAIN_DISABLE_FUTURE), FUTURE_FAIL);
|
future_ready(*btc_main_get_future_p(BTC_MAIN_DISABLE_FUTURE), FUTURE_FAIL);
|
||||||
}
|
}
|
||||||
|
@@ -5,3 +5,25 @@
|
|||||||
# BT config
|
# BT config
|
||||||
#
|
#
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE_0=y
|
||||||
|
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE_1=
|
||||||
|
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
|
||||||
|
CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
|
||||||
|
CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4=
|
||||||
|
CONFIG_BLUEDROID_ENABLED=y
|
||||||
|
CONFIG_BLUEDROID_PINNED_TO_CORE_0=y
|
||||||
|
CONFIG_BLUEDROID_PINNED_TO_CORE_1=
|
||||||
|
CONFIG_BLUEDROID_PINNED_TO_CORE=0
|
||||||
|
CONFIG_BTC_TASK_STACK_SIZE=3072
|
||||||
|
CONFIG_BLUEDROID_MEM_DEBUG=
|
||||||
|
CONFIG_CLASSIC_BT_ENABLED=
|
||||||
|
CONFIG_GATTS_ENABLE=y
|
||||||
|
CONFIG_GATTC_ENABLE=
|
||||||
|
CONFIG_BLE_SMP_ENABLE=
|
||||||
|
CONFIG_BLE_ENABLE_SRVCHG_REG=y
|
||||||
|
CONFIG_BT_STACK_NO_LOG=
|
||||||
|
CONFIG_BT_ACL_CONNECTIONS=4
|
||||||
|
CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=
|
||||||
|
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=
|
||||||
|
CONFIG_SMP_ENABLE=
|
||||||
|
CONFIG_BT_RESERVE_DRAM=0x10000
|
||||||
|
Reference in New Issue
Block a user