refactor(esp_phy): refactor phy sleep data initialize, split it to support multiple targets

This commit is contained in:
Li Shuai
2025-01-26 14:54:33 +08:00
committed by BOT
parent 9e1b5eb173
commit 325f1f33f5
5 changed files with 215 additions and 68 deletions
@@ -7,6 +7,7 @@
#pragma once
#include "sdkconfig.h"
#include "esp_phy_init.h"
#include "soc/soc_caps.h"
#ifdef __cplusplus
extern "C" {
@@ -242,6 +243,18 @@ uint32_t phy_ana_i2c_master_burst_rf_onoff(bool on);
void phy_wakeup_from_modem_state_extra_init(void);
#endif
#if SOC_PM_MODEM_RETENTION_BY_REGDMA && CONFIG_MAC_BB_PD
/**
* @brief PHY module sleep data (includes AGC, TX, NRX, BB, FE, etc..) initialize.
*/
void esp_phy_sleep_data_init(void);
/**
* @brief PHY module sleep data de-initialize.
*/
void esp_phy_sleep_data_deinit(void);
#endif
#ifdef __cplusplus
}
#endif