fix(esp_hw_support): fix modem power enable failed after modem state wakeup

This commit is contained in:
wuzhenghui
2024-12-23 14:49:29 +08:00
parent 706a445782
commit 0c0d8cb8e4
6 changed files with 35 additions and 10 deletions
@@ -6,6 +6,7 @@
#pragma once
#include <sys/lock.h>
#include "sdkconfig.h"
#include "esp_phy_init.h"
#ifdef __cplusplus
@@ -232,6 +233,16 @@ uint32_t phy_ana_i2c_master_burst_bbpll_config(void);
uint32_t phy_ana_i2c_master_burst_rf_onoff(bool on);
#endif
#if CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP
/**
* @brief On sleep->modem->active wakeup process, since RF has been turned on by hardware in
* modem state, `sleep_modem_wifi_do_phy_retention` and `phy_wakeup_init` will be skipped
* in `esp_phy_enable`, but there are still some configurations that need to be restored
* by software, which are packed in this function.
*/
void phy_wakeup_from_modem_state_extra_init(void);
#endif
#ifdef __cplusplus
}
#endif