mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(phy): add skip list to sleep phy link context and fix deinit crash
This commit is contained in:
@@ -96,7 +96,7 @@ void sleep_modem_mac_bb_power_up_prepare(void);
|
||||
*
|
||||
* @param restore true for restore the PHY context, false for backup the PHY context
|
||||
*/
|
||||
void sleep_modem_do_phy_retention(bool restore);
|
||||
void sleep_modem_do_phy_retention(bool restore, uint8_t flags);
|
||||
|
||||
/**
|
||||
* @brief Get phy link state
|
||||
@@ -253,24 +253,24 @@ bool sleep_modem_wifi_modem_state_skip_light_sleep(void);
|
||||
|
||||
/**
|
||||
* @brief Function to initialize and create the phy link
|
||||
* @param link_head the pointer that point to the head of the created phy link
|
||||
* @param link_context PHY link regdma description conteoxt pointer
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERR_NO_MEM if no memory for link
|
||||
* - ESP_ERR_INVALID_ARG if value is out of range
|
||||
* - ESP_ERR_INVALID_STATE if the phy module retention state is invalid
|
||||
*/
|
||||
esp_err_t sleep_phy_link_init(void **link_head);
|
||||
esp_err_t sleep_phy_link_init(void **link_context);
|
||||
|
||||
/**
|
||||
* @brief Function to destroy and de-initialize phy link
|
||||
* @param link_head the phy link head will be destroyed
|
||||
* @param link_context PHY link regdma description conteoxt pointer
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERR_INVALID_ARG if value is out of range
|
||||
* - ESP_ERR_INVALID_STATE if the phy module retention state is invalid
|
||||
*/
|
||||
esp_err_t sleep_phy_link_deinit(void *link_head);
|
||||
esp_err_t sleep_phy_link_deinit(void *link_context);
|
||||
|
||||
/**
|
||||
* @brief Function to configure PHY link regdma description at runtime
|
||||
|
||||
Reference in New Issue
Block a user