mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
Power Management: support DFS
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "cmd_system.h"
|
||||
#include "wifi_cmd.h"
|
||||
#include "esp_wifi_he.h"
|
||||
#include "esp_pm.h"
|
||||
|
||||
/*******************************************************
|
||||
* Constants
|
||||
@@ -244,10 +245,7 @@ void app_main(void)
|
||||
}
|
||||
|
||||
// TODO: WIFI-5150
|
||||
#if CONFIG_PM_ENABLE
|
||||
io_toggle_pmu_internal_signal_map_to_io_init();
|
||||
io_toggle_gpio_init();
|
||||
|
||||
#if CONFIG_PM_ENABLE && 0
|
||||
sleep_clock_system_retention_init();
|
||||
sleep_clock_modem_retention_init();
|
||||
sleep_peripheral_retention_init();
|
||||
|
@@ -105,6 +105,8 @@ void app_main(void)
|
||||
esp_pm_config_esp32s3_t pm_config = {
|
||||
#elif CONFIG_IDF_TARGET_ESP32C2
|
||||
esp_pm_config_esp32c2_t pm_config = {
|
||||
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||
esp_pm_config_esp32c6_t pm_config = {
|
||||
#endif
|
||||
.max_freq_mhz = CONFIG_EXAMPLE_MAX_CPU_FREQ_MHZ,
|
||||
.min_freq_mhz = CONFIG_EXAMPLE_MIN_CPU_FREQ_MHZ,
|
||||
|
Reference in New Issue
Block a user