From 95f47a2d4dd3a980bb0f0f049e69970743d192cf Mon Sep 17 00:00:00 2001 From: baohongde Date: Fri, 24 Apr 2020 15:35:03 +0800 Subject: [PATCH] Coexistence: Add coexist API to enable BLE connection dynamic priority --- components/bt/controller/lib | 2 +- components/esp_wifi/include/esp_coexist.h | 14 ++++++++++++++ components/esp_wifi/lib | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/bt/controller/lib b/components/bt/controller/lib index e89bf97b85..3524d276d6 160000 --- a/components/bt/controller/lib +++ b/components/bt/controller/lib @@ -1 +1 @@ -Subproject commit e89bf97b85e0136112118e1023555bf77e272e4c +Subproject commit 3524d276d64e6d8ec07688fd374581a5d305ad6d diff --git a/components/esp_wifi/include/esp_coexist.h b/components/esp_wifi/include/esp_coexist.h index 1ff624d9b5..cbfd91a5b3 100644 --- a/components/esp_wifi/include/esp_coexist.h +++ b/components/esp_wifi/include/esp_coexist.h @@ -84,6 +84,20 @@ esp_err_t esp_coex_status_bit_set(esp_coex_status_type_t type, uint32_t status); */ esp_err_t esp_coex_status_bit_clear(esp_coex_status_type_t type, uint32_t status); +/** + * @brief Enable BLE connection dynamic priority + * @attention If the parameter is true, BLE connection performance will be better but WiFi performance + will be poorer. And vice versa. + * @param low_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE +* connection interval is less or equal than 50 ms. The default value +* is false. + * false - not increace + * @param high_interval : true - Increase BLE connection priority to be higher than WiFi's when BLE +* connection interval is more than 50 ms. The default value is true. + * false - not increace + * @return : ESP_OK - success, other - failed + */ +esp_err_t esp_coex_ble_conn_dynamic_prio_enable(bool low_interval, bool high_interval); #ifdef __cplusplus } diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 2362026ea1..f16b635326 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 2362026ea1d8692fc0a362ddac298c6a32628978 +Subproject commit f16b635326cced7bf582b3abd2e800c3e0694b0a