From 916cd899f319666abf051c65295589a5cad30d87 Mon Sep 17 00:00:00 2001 From: ZYH Date: Thu, 21 Mar 2019 15:30:04 +0800 Subject: [PATCH] [BSP][K210]Add interface reboot --- bsp/k210/driver/board.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bsp/k210/driver/board.c b/bsp/k210/driver/board.c index 0cd78b8c79..4241cc306e 100644 --- a/bsp/k210/driver/board.c +++ b/bsp/k210/driver/board.c @@ -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);