change(esp_hw_support): support power management dfs flow

This commit is contained in:
Li Shuai
2025-03-04 20:15:56 +08:00
committed by BOT
parent d3a9e4f185
commit e351f17790
5 changed files with 15 additions and 10 deletions

View File

@@ -379,14 +379,15 @@ static esp_err_t esp_pm_sleep_configure(const void *vconfig)
esp_err_t err = ESP_OK;
const esp_pm_config_t* config = (const esp_pm_config_t*) vconfig;
#if ESP_SLEEP_POWER_DOWN_CPU
#if ESP_SLEEP_POWER_DOWN_CPU && CONFIG_SOC_LIGHT_SLEEP_SUPPORTED
err = sleep_cpu_configure(config->light_sleep_enable);
if (err != ESP_OK) {
return err;
}
#endif
#if CONFIG_SOC_LIGHT_SLEEP_SUPPORTED
err = sleep_modem_configure(config->max_freq_mhz, config->min_freq_mhz, config->light_sleep_enable);
#endif
return err;
}