mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-16 11:38:11 +08:00
bsp: k230: use sysctl to reboot the board
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user