mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
Disable brown-out WDT, fix thread WDT, add panic reason indication to _xt_panic()
This commit is contained in:
@@ -22,10 +22,18 @@
|
||||
#include "soc/rtc_cntl_reg.h"
|
||||
|
||||
|
||||
#if CONFIG_BROWNOUT_DET
|
||||
/*
|
||||
This file ins included in esp-idf, but the menuconfig option for this is disabled because a silicon bug
|
||||
prohibits the brownout detector from functioning correctly on the ESP32.
|
||||
*/
|
||||
|
||||
void esp_brownout_init() {
|
||||
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG,
|
||||
RTC_CNTL_BROWN_OUT_ENA | (CONFIG_BROWNOUT_DET_LVL << RTC_CNTL_DBROWN_OUT_THRES_S) |
|
||||
RTC_CNTL_BROWN_OUT_RST_ENA | (((CONFIG_BROWNOUT_DET_RESETDELAY*150)/1000) << RTC_CNTL_BROWN_OUT_RST_WAIT_S) |
|
||||
RTC_CNTL_BROWN_OUT_PD_RF_ENA|RTC_CNTL_BROWN_OUT_CLOSE_FLASH_ENA);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user