mirror of https://github.com/RT-Thread/rt-thread
bsp: k230: use sysctl to reboot the board
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
This commit is contained in:
parent
fd5c70d042
commit
be3cfd9c00
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "drv_uart.h"
|
||||
|
||||
#include <sbi.h>
|
||||
#include "sysctl_boot.h"
|
||||
|
||||
#ifdef RT_USING_SMART
|
||||
#include <mmu.h>
|
||||
|
@ -126,7 +126,7 @@ void rt_hw_board_init(void)
|
|||
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
sbi_shutdown();
|
||||
sysctl_boot_reset_soc();
|
||||
while(1);
|
||||
}
|
||||
MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset machine);
|
||||
|
|
Loading…
Reference in New Issue