提交 dd367718 编写于 作者: M michael

bsp:ls2k:add reboot and power command

上级 b86d608d
#include <rtthread.h>
static void reboot()
{
rt_hw_cpu_reset();
}
MSH_CMD_EXPORT(reboot, reboot sample);
static void poweroff()
{
rt_hw_cpu_shutdown();
}
MSH_CMD_EXPORT(poweroff, shutdown power sample);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册