esp32s2: BROWNOUT reset reason is set directly without using the brownout ISR

This commit is contained in:
KonstantinKondrashov 2021-01-08 19:48:14 +08:00
parent d81a93ae4c
commit f58c296336

View File

@ -31,6 +31,7 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
.rst_wait = 0x3ff,
.rst_ena = cfg->reset_enabled,
.ena = cfg->enabled,
.rst_sel = 1,
};
RTCCNTL.brown_out = brown_out_reg;
}