kopia lustrzana https://github.com/espressif/esp-idf
esp_wifi: fix nolightsleep after wifi init
rodzic
91dbae3eb5
commit
f1ee8aa14f
|
@ -303,6 +303,12 @@ esp_err_t esp_sleep_enable_uart_wakeup(int uart_num);
|
|||
*/
|
||||
esp_err_t esp_sleep_enable_wifi_wakeup(void);
|
||||
|
||||
/**
|
||||
* @brief Disable wakeup by WiFi MAC
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
*/
|
||||
esp_err_t esp_sleep_disable_wifi_wakeup(void);
|
||||
|
||||
/**
|
||||
* @brief Get the bit mask of GPIOs which caused wakeup (ext1)
|
||||
|
|
|
@ -1176,6 +1176,15 @@ esp_err_t esp_sleep_enable_wifi_wakeup(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
esp_err_t esp_sleep_disable_wifi_wakeup(void)
|
||||
{
|
||||
#if SOC_PM_SUPPORT_WIFI_WAKEUP
|
||||
s_config.wakeup_triggers &= (~RTC_WIFI_TRIG_EN);
|
||||
return ESP_OK;
|
||||
#else
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
esp_sleep_wakeup_cause_t esp_sleep_get_wakeup_cause(void)
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a5ce0c65ede0c36332b9cddb98693f436ee0345d
|
||||
Subproject commit e4415c13367c1dcff2d8e3d7e34052391c71eeff
|
|
@ -150,6 +150,7 @@ esp_err_t esp_wifi_deinit(void)
|
|||
#if SOC_WIFI_HW_TSF
|
||||
esp_pm_unregister_skip_light_sleep_callback(esp_wifi_internal_is_tsf_active);
|
||||
esp_pm_unregister_inform_out_light_sleep_overhead_callback(esp_wifi_internal_update_light_sleep_wake_ahead_time);
|
||||
esp_sleep_disable_wifi_wakeup();
|
||||
#endif
|
||||
#if CONFIG_ESP_WIFI_SLP_IRAM_OPT
|
||||
esp_pm_unregister_light_sleep_default_params_config_callback();
|
||||
|
|
Ładowanie…
Reference in New Issue