2017-10-10 04:33:47 +00:00
|
|
|
# Use lower CPU frequency
|
|
|
|
CONFIG_ESP32_DEFAULT_CPU_FREQ_80=y
|
|
|
|
# Enable support for power management
|
|
|
|
CONFIG_PM_ENABLE=y
|
2018-05-03 17:31:15 +00:00
|
|
|
# Enable tickless idle mode
|
|
|
|
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
|
2017-10-10 04:33:47 +00:00
|
|
|
# Use RTC timer as reference
|
|
|
|
CONFIG_PM_USE_RTC_TIMER_REF=y
|
2020-12-25 12:04:32 +00:00
|
|
|
# Put related source code in IRAM
|
|
|
|
CONFIG_PM_SLP_IRAM_OPT=y
|
|
|
|
CONFIG_PM_RTOS_IDLE_OPT=y
|
2020-11-12 12:39:55 +00:00
|
|
|
# Disable all GPIO at light sleep
|
|
|
|
CONFIG_GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL=y
|
|
|
|
CONFIG_PM_SLP_DISABLE_GPIO=y
|
2020-12-30 08:42:39 +00:00
|
|
|
# Enable wifi sleep iram optimization
|
|
|
|
CONFIG_ESP_WIFI_SLP_IRAM_OPT=y
|