[PATCH] BugID:20800973:[sv6266]update hal_reboot
[PATCH] BugID:20800973:[sv6266]update hal_reboot
@@ -46,14 +46,21 @@ int hal_reboot_bank(void)
#if defined(CONFIG_ENABLE_WDT)
drv_wdt_kick(SYS_WDT);
#endif
+ drv_wdt_init();
+ drv_wdt_enable(1, 100);
+ while(1);
OS_ExitCritical();
- REG32(0xC0000000) = (1<<21);
return 0;
}
void hal_reboot(void)
{
- REG32(0xC0000000) = (1<<21);
+ OS_DeclareCritical();
+ OS_EnterCritical();
+ drv_wdt_init();
+ drv_wdt_enable(1, 100);
+ while(1);
+ OS_ExitCritical();
}
extern hal_wifi_module_t sim_aos_wifi_icomm;
