Merge branch 'bugfix/support_esp32c3_lightsleep_master_cpu_pd_issue' into 'master'

fix cpu pd bug of normal light sleep

See merge request espressif/esp-idf!12083
This commit is contained in:
Jiang Jiang Jian
2021-01-22 14:03:10 +08:00
3 changed files with 9 additions and 4 deletions

View File

@@ -78,10 +78,10 @@ menu "ESP32C3-Specific"
e.g. GCOV data dump.
config ESP32C3_BROWNOUT_DET
bool
bool "Hardware brownout detect & reset"
default y
help
The ESP32-S3 has a built-in brownout detector which can detect if the voltage is lower than
The ESP32-C3 has a built-in brownout detector which can detect if the voltage is lower than
a specific value. If this happens, it will reset the chip in order to prevent unintended
behaviour.

View File

@@ -1086,8 +1086,12 @@ static uint32_t get_power_down_flags(void)
#endif // SOC_TOUCH_PAD_WAKE_SUPPORTED
}
#if !SOC_PM_SUPPORT_CPU_PD
if (s_config.pd_options[ESP_PD_DOMAIN_CPU] == ESP_PD_OPTION_AUTO) {
#if SOC_PM_SUPPORT_CPU_PD
if (s_config.cpu_pd_mem == NULL) {
s_config.pd_options[ESP_PD_DOMAIN_CPU] = ESP_PD_OPTION_ON;
}
#else
if (s_config.pd_options[ESP_PD_DOMAIN_CPU] != ESP_PD_OPTION_ON) {
s_config.pd_options[ESP_PD_DOMAIN_CPU] = ESP_PD_OPTION_ON;
}
#endif

View File

@@ -18,6 +18,7 @@
#include "esp_log.h"
#include "driver/uart.h"
#include "driver/gpio.h"
#include "esp_timer.h"
/* Most development boards have "boot" button attached to GPIO0.
* You can also change this to another pin.