esp32c3: Adds support BROWNOUT reset

This commit is contained in:
KonstantinKondrashov
2021-01-07 22:44:33 +08:00
parent c65a24063d
commit d81a93ae4c
5 changed files with 32 additions and 19 deletions
+4 -1
View File
@@ -242,7 +242,10 @@ static void do_core_init(void)
#endif
}
#if CONFIG_ESP32_BROWNOUT_DET || CONFIG_ESP32S2_BROWNOUT_DET
#if CONFIG_ESP32_BROWNOUT_DET || \
CONFIG_ESP32S2_BROWNOUT_DET || \
CONFIG_ESP32S3_BROWNOUT_DET || \
CONFIG_ESP32C3_BROWNOUT_DET
// [refactor-todo] leads to call chain rtc_is_register (driver) -> esp_intr_alloc (esp32/esp32s2) ->
// malloc (newlib) -> heap_caps_malloc (heap), so heap must be at least initialized
esp_brownout_init();