Skip to content

Commit b7e26d5

Browse files
committed
change: power management iram memory usage optimization is only effective for esp32c2
1 parent ce63f86 commit b7e26d5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/esp_pm/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
menu "Power Management"
2+
3+
config PM_SLEEP_FUNC_IN_IRAM
4+
bool "Place Power Management module functions in IRAM" if IDF_TARGET_ESP32C2
5+
default y
6+
select PM_SLP_IRAM_OPT if (SOC_LIGHT_SLEEP_SUPPORTED && ESP_TIMER_IN_IRAM)
7+
select PM_RTOS_IDLE_OPT if FREERTOS_USE_TICKLESS_IDLE
8+
select ESP_PERIPH_CTRL_FUNC_IN_IRAM
9+
select ESP_REGI2C_CTRL_FUNC_IN_IRAM
10+
11+
212
config PM_ENABLE
313
bool "Support for power management"
414
# SMP FreeRTOS currently does not support power management IDF-4997

components/esp_wifi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ menu "Wi-Fi"
343343
config ESP_WIFI_SLP_IRAM_OPT
344344
bool "WiFi SLP IRAM speed optimization"
345345
select PM_SLP_DEFAULT_PARAMS_OPT
346+
select PM_SLEEP_FUNC_IN_IRAM
346347
select ESP_PERIPH_CTRL_FUNC_IN_IRAM
347348
default y if SOC_WIFI_HE_SUPPORT
348349
help

0 commit comments

Comments
 (0)