bootloader: fixed super watchdog not enabled issue on C3, S3, H4

This commit is contained in:
Xiao Xufeng
2023-03-07 11:13:18 +08:00
parent 8a926c5b37
commit d586a8aa13
7 changed files with 14 additions and 14 deletions

View File

@@ -104,20 +104,20 @@ static inline void bootloader_ana_reset_config(void)
switch (efuse_hal_chip_revision()) {
case 0:
case 1:
//Enable WDT reset. Disable BOR and GLITCH reset
//Enable WDT reset. Disable BOD and GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
bootloader_ana_bod_reset_config(false);
bootloader_ana_clock_glitch_reset_config(false);
break;
case 2:
//Enable WDT and BOR reset. Disable GLITCH reset
//Enable WDT and BOD reset. Disable GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
bootloader_ana_bod_reset_config(true);
bootloader_ana_clock_glitch_reset_config(false);
break;
case 3:
default:
//Enable WDT, BOR, and GLITCH reset
//Enable WDT, BOD, and GLITCH reset
bootloader_ana_super_wdt_reset_config(true);
bootloader_ana_bod_reset_config(true);
bootloader_ana_clock_glitch_reset_config(true);