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

This commit is contained in:
wuzhenghui
2025-01-09 11:12:51 +08:00
parent e248c59c37
commit aaf7c6a9ce
4 changed files with 31 additions and 6 deletions
+12 -1
View File
@@ -1,10 +1,11 @@
/*
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "sdkconfig.h"
#include "esp_phy_init.h"
#ifdef __cplusplus
@@ -180,6 +181,16 @@ _lock_t phy_get_lock(void);
*
*/
void phy_track_pll(void);
#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