浏览代码

bsp: k230: use sysctl to reboot the board

Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
Wang Chen 1 月之前
父节点
当前提交
be3cfd9c00
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bsp/k230/board/board.c

+ 2 - 2
bsp/k230/board/board.c

@@ -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);