mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
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:
@@ -78,10 +78,10 @@ menu "ESP32C3-Specific"
|
|||||||
e.g. GCOV data dump.
|
e.g. GCOV data dump.
|
||||||
|
|
||||||
config ESP32C3_BROWNOUT_DET
|
config ESP32C3_BROWNOUT_DET
|
||||||
bool
|
bool "Hardware brownout detect & reset"
|
||||||
default y
|
default y
|
||||||
help
|
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
|
a specific value. If this happens, it will reset the chip in order to prevent unintended
|
||||||
behaviour.
|
behaviour.
|
||||||
|
|
||||||
|
@@ -1086,8 +1086,12 @@ static uint32_t get_power_down_flags(void)
|
|||||||
#endif // SOC_TOUCH_PAD_WAKE_SUPPORTED
|
#endif // SOC_TOUCH_PAD_WAKE_SUPPORTED
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !SOC_PM_SUPPORT_CPU_PD
|
#if SOC_PM_SUPPORT_CPU_PD
|
||||||
if (s_config.pd_options[ESP_PD_DOMAIN_CPU] == ESP_PD_OPTION_AUTO) {
|
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;
|
s_config.pd_options[ESP_PD_DOMAIN_CPU] = ESP_PD_OPTION_ON;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "driver/uart.h"
|
#include "driver/uart.h"
|
||||||
#include "driver/gpio.h"
|
#include "driver/gpio.h"
|
||||||
|
#include "esp_timer.h"
|
||||||
|
|
||||||
/* Most development boards have "boot" button attached to GPIO0.
|
/* Most development boards have "boot" button attached to GPIO0.
|
||||||
* You can also change this to another pin.
|
* You can also change this to another pin.
|
||||||
|
Reference in New Issue
Block a user