mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-20 09:51:44 +00:00
esp_wifi: store PHY digital registers before disabling PHY and load
them after enabling PHY
This commit is contained in:

committed by
zhangyanjiao

parent
436c3c289e
commit
e5e47ebae6
@@ -21,10 +21,6 @@ extern "C" {
|
||||
|
||||
#define ESP_CAL_DATA_CHECK_FAIL 1
|
||||
|
||||
#if CONFIG_MAC_BB_PD
|
||||
#define MAC_BB_PD_MEM_SIZE (192*4)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @file phy.h
|
||||
* @brief Declarations for functions provided by libphy.a
|
||||
@@ -80,6 +76,16 @@ void phy_close_rf(void);
|
||||
void phy_xpd_tsens(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Store and load PHY digital registers.
|
||||
*
|
||||
* @param backup_en if backup_en is true, store PHY digital registers to memory. Otherwise load PHY digital registers from memory
|
||||
* @param mem_addr Memory address to store and load PHY digital registers
|
||||
*
|
||||
* @return memory size
|
||||
*/
|
||||
uint8_t phy_dig_reg_backup(bool backup_en, uint32_t *mem_addr);
|
||||
|
||||
#if CONFIG_MAC_BB_PD
|
||||
/**
|
||||
* @brief Store and load baseband registers.
|
||||
|
Reference in New Issue
Block a user