Skip to content

Commit

Permalink
- update phy lib
Browse files Browse the repository at this point in the history
- Enable BLE pll track to fix bluetooth disconnection caused by temperature rise or fall on ESP32C3 and ESP32S3
- call pll track in controller task
  • Loading branch information
Weijian-Espressif committed Dec 1, 2022
1 parent b447086 commit 9cfffd2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions components/bt/controller/esp32c3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ extern bool btdm_deep_sleep_mem_init(void);
extern void btdm_deep_sleep_mem_deinit(void);
extern void btdm_ble_power_down_dma_copy(bool copy);
extern uint8_t btdm_sleep_clock_sync(void);
extern void sdk_config_extend_set_pll_track(bool enable);

#if CONFIG_MAC_BB_PD
extern void esp_mac_bb_power_down(void);
Expand Down Expand Up @@ -965,8 +964,6 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
// overwrite some parameters
cfg->magic = ESP_BT_CTRL_CONFIG_MAGIC_VAL;

sdk_config_extend_set_pll_track(false);

#if CONFIG_MAC_BB_PD
esp_mac_bb_pd_mem_init();
#endif
Expand Down
3 changes: 0 additions & 3 deletions components/bt/controller/esp32s3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ extern bool btdm_deep_sleep_mem_init(void);
extern void btdm_deep_sleep_mem_deinit(void);
extern void btdm_ble_power_down_dma_copy(bool copy);
extern uint8_t btdm_sleep_clock_sync(void);
extern void sdk_config_extend_set_pll_track(bool enable);

#if CONFIG_MAC_BB_PD
extern void esp_mac_bb_power_down(void);
Expand Down Expand Up @@ -997,8 +996,6 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
// overwrite some parameters
cfg->magic = ESP_BT_CTRL_CONFIG_MAGIC_VAL;

sdk_config_extend_set_pll_track(false);

#if CONFIG_MAC_BB_PD
esp_mac_bb_pd_mem_init();
#endif
Expand Down
2 changes: 1 addition & 1 deletion components/esp_phy/lib

0 comments on commit 9cfffd2

Please sign in to comment.