mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_backports_v3.3_0114' into 'release/v3.3'
components/bt: backport release/v3.3 See merge request espressif/esp-idf!7358
This commit is contained in:
commit
613ba4c015
@ -76,6 +76,20 @@ menu Bluetooth
|
|||||||
default 1 if BTDM_CTRL_BR_EDR_SCO_DATA_PATH_PCM
|
default 1 if BTDM_CTRL_BR_EDR_SCO_DATA_PATH_PCM
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
config BTDM_CTRL_AUTO_LATENCY
|
||||||
|
bool "Auto latency"
|
||||||
|
depends on BTDM_CONTROLLER_MODE_BTDM
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
BLE auto latency, used to enhance classic BT performance
|
||||||
|
while classic BT and BLE are enabled at the same time.
|
||||||
|
|
||||||
|
config BTDM_CTRL_AUTO_LATENCY_EFF
|
||||||
|
bool
|
||||||
|
default BTDM_CTRL_AUTO_LATENCY if BTDM_CONTROLLER_MODE_BTDM
|
||||||
|
default n
|
||||||
|
|
||||||
|
|
||||||
config BTDM_CONTROLLER_BLE_MAX_CONN_EFF
|
config BTDM_CONTROLLER_BLE_MAX_CONN_EFF
|
||||||
int
|
int
|
||||||
default BTDM_CONTROLLER_BLE_MAX_CONN if BTDM_CONTROLLER_MODE_BLE_ONLY || BTDM_CONTROLLER_MODE_BTDM
|
default BTDM_CONTROLLER_BLE_MAX_CONN if BTDM_CONTROLLER_MODE_BLE_ONLY || BTDM_CONTROLLER_MODE_BTDM
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20190506
|
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20200106
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Bluetooth mode for controller enable/disable
|
* @brief Bluetooth mode for controller enable/disable
|
||||||
@ -96,6 +96,12 @@ the adv packet will be discarded until the memory is restored. */
|
|||||||
#define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_BTDM
|
#define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_BTDM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BTDM_CTRL_AUTO_LATENCY_EFF
|
||||||
|
#define BTDM_CTRL_AUTO_LATENCY_EFF CONFIG_BTDM_CTRL_AUTO_LATENCY_EFF
|
||||||
|
#else
|
||||||
|
#define BTDM_CTRL_AUTO_LATENCY_EFF false
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BTDM_CONTROLLER_BLE_MAX_CONN_LIMIT 9 //Maximum BLE connection limitation
|
#define BTDM_CONTROLLER_BLE_MAX_CONN_LIMIT 9 //Maximum BLE connection limitation
|
||||||
#define BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_LIMIT 7 //Maximum ACL connection limitation
|
#define BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_LIMIT 7 //Maximum ACL connection limitation
|
||||||
#define BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_LIMIT 3 //Maximum SCO/eSCO connection limitation
|
#define BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_LIMIT 3 //Maximum SCO/eSCO connection limitation
|
||||||
@ -119,6 +125,7 @@ the adv packet will be discarded until the memory is restored. */
|
|||||||
.bt_max_acl_conn = CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_EFF, \
|
.bt_max_acl_conn = CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_EFF, \
|
||||||
.bt_sco_datapath = CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF, \
|
.bt_sco_datapath = CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF, \
|
||||||
.bt_max_sync_conn = CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_EFF, \
|
.bt_max_sync_conn = CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_EFF, \
|
||||||
|
.auto_latency = BTDM_CTRL_AUTO_LATENCY_EFF, \
|
||||||
.magic = ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL, \
|
.magic = ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL, \
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -149,6 +156,7 @@ typedef struct {
|
|||||||
uint8_t ble_max_conn; /*!< BLE maximum connection numbers */
|
uint8_t ble_max_conn; /*!< BLE maximum connection numbers */
|
||||||
uint8_t bt_max_acl_conn; /*!< BR/EDR maximum ACL connection numbers */
|
uint8_t bt_max_acl_conn; /*!< BR/EDR maximum ACL connection numbers */
|
||||||
uint8_t bt_sco_datapath; /*!< SCO data path, i.e. HCI or PCM module */
|
uint8_t bt_sco_datapath; /*!< SCO data path, i.e. HCI or PCM module */
|
||||||
|
bool auto_latency; /*!< BLE auto latency, used to enhance classic BT performance */
|
||||||
/*
|
/*
|
||||||
* Following parameters can not be configured runtime when call esp_bt_controller_init()
|
* Following parameters can not be configured runtime when call esp_bt_controller_init()
|
||||||
* It will be overwrite with a constant value which in menuconfig or from a macro.
|
* It will be overwrite with a constant value which in menuconfig or from a macro.
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit bd605c2000afbc9b15be92de35ec20bcd8c47fcf
|
Subproject commit e8fce0677dda661d23d96d09c4a7bc1578e4ac48
|
Loading…
Reference in New Issue
Block a user