mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-21 19:09:13 +00:00
soc/pm: Remove deprecated use of rtc_cpu_freq_t enum
Removes deprecated ways of setting/getting CPU freq, light sleep freqs. Deprecated since ESP-IDF V3.2
This commit is contained in:
committed by
Angus Gratton
parent
f406d020d8
commit
11c1da5276
@@ -61,8 +61,8 @@ TEST_CASE("Can switch frequency using esp_pm_configure", "[pm]")
|
||||
static void light_sleep_enable(void)
|
||||
{
|
||||
const esp_pm_config_esp32_t pm_config = {
|
||||
.max_cpu_freq = rtc_clk_cpu_freq_get(),
|
||||
.min_cpu_freq = RTC_CPU_FREQ_XTAL,
|
||||
.max_freq_mhz = esp_clk_cpu_freq() / 1000000,
|
||||
.min_freq_mhz = esp_clk_xtal_freq() / MHZ,
|
||||
.light_sleep_enable = true
|
||||
};
|
||||
ESP_ERROR_CHECK( esp_pm_configure(&pm_config) );
|
||||
@@ -71,8 +71,8 @@ static void light_sleep_enable(void)
|
||||
static void light_sleep_disable(void)
|
||||
{
|
||||
const esp_pm_config_esp32_t pm_config = {
|
||||
.max_cpu_freq = rtc_clk_cpu_freq_get(),
|
||||
.min_cpu_freq = rtc_clk_cpu_freq_get(),
|
||||
.max_freq_mhz = esp_clk_cpu_freq() / 1000000,
|
||||
.min_freq_mhz = esp_clk_cpu_freq() / 1000000,
|
||||
};
|
||||
ESP_ERROR_CHECK( esp_pm_configure(&pm_config) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user