BugID:19864463: reboot -> reboot repeat
@@ -177,6 +177,7 @@ void sys_adc_calibration(u8 write, u16 *offset, u16 *gain)
*/
void sys_reset(void)
{
+ while(1) {
rtc_backup_timeinfo();
/* Set processor clock to default(2: 31.25MHz) before system reset */
@@ -187,6 +188,8 @@ void sys_reset(void)
SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | // VECTKEY
(SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | // PRIGROUP
SCB_AIRCR_SYSRESETREQ_Msk); // SYSRESETREQ
+ DelayUs(100*1000);
+ }
}
