mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
Fixed GLITCH_RTC_RST for esp32-c3 revision 3
* Issue: https://github.com/espressif/esp-idf/issues/7082 Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com> Closes https://github.com/espressif/esp-idf/issues/7082 Closes https://github.com/espressif/esp-idf/pull/7441
This commit is contained in:
parent
5fd169059d
commit
872c42ecf7
@ -282,7 +282,8 @@ static inline void bootloader_glitch_reset_disable(void)
|
||||
uint8_t chip_version = bootloader_common_get_chip_revision();
|
||||
if (chip_version < 2) {
|
||||
REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST);
|
||||
} else if (chip_version == 2) {
|
||||
} else {
|
||||
// checked on ESP32-C3 revisions 2 and 3
|
||||
REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST | RTC_CNTL_FIB_BOR_RST);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user