kopia lustrzana https://github.com/espressif/esp-idf
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/7441pull/7536/head
rodzic
e215ea5bd2
commit
87b958c814
|
@ -273,7 +273,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);
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue