Merge branch 'fix/fix_tsens_power_after_modem_wakeup_v5.3' into 'release/v5.3'

fix(esp_hw_support): fix tsensor power enable failed after modem state wakeup (v5.3)

See merge request espressif/esp-idf!36227
This commit is contained in:
Jiang Jiang Jian
2025-01-17 12:02:59 +08:00
4 changed files with 34 additions and 9 deletions

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
@@ -218,6 +219,16 @@ void phy_ant_clr_update_flag(void);
void phy_ant_update(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