mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(bt): supported bt modem clock configuration on esp32s31
This commit is contained in:
@@ -283,10 +283,6 @@ btdm_lp_enable_clock(esp_btdm_controller_config_t *cfg)
|
||||
{
|
||||
modem_clock_module_enable(PERIPH_BT_MODULE);
|
||||
modem_clock_module_mac_reset(PERIPH_BT_MODULE);
|
||||
#if CONFIG_IDF_TARGET_ESP32S31
|
||||
// TODO: PM-704
|
||||
REG_WRITE(HP_SYS_CLKRST_MODEM_CONF_REG, 0x3d);
|
||||
#endif
|
||||
btdm_lp_timer_clk_init(cfg);
|
||||
}
|
||||
|
||||
@@ -379,8 +375,8 @@ btdm_lp_reset(bool enable_stage)
|
||||
esp_btbb_enable();
|
||||
s_bt_active = true;
|
||||
} else {
|
||||
esp_btbb_disable();
|
||||
if (s_bt_active) {
|
||||
esp_btbb_disable();
|
||||
esp_phy_disable(PHY_MODEM_BT);
|
||||
#if CONFIG_PM_ENABLE
|
||||
esp_pm_lock_release(s_pm_lock);
|
||||
|
||||
@@ -370,6 +370,7 @@ void esp_phy_enable(esp_phy_modem_t modem)
|
||||
phy_ant_update();
|
||||
phy_ant_clr_update_flag();
|
||||
}
|
||||
phy_module_disable();
|
||||
}
|
||||
phy_set_modem_flag(modem);
|
||||
#if !CONFIG_IDF_TARGET_ESP32 && !CONFIG_ESP_PHY_DISABLE_PLL_TRACK
|
||||
|
||||
Reference in New Issue
Block a user