[BSP][K210]Add interface reboot

This commit is contained in:
ZYH 2019-03-21 15:30:04 +08:00
parent 437b0da91e
commit 916cd899f3
1 changed files with 7 additions and 0 deletions

View File

@ -117,3 +117,10 @@ void rt_hw_board_init(void)
rt_components_board_init();
#endif
}
void rt_hw_cpu_reset(void)
{
sysctl->soft_reset.soft_reset = 1;
while(1);
}
MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset machine);