提交 623bf0ab 编写于 作者: M michael

bsp:ls2k:unify code format

上级 93bcc2e0
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-09-17 maoxiaochuan first version
*/
#include <rtthread.h>
static void reboot()
{
rt_hw_cpu_reset();
rt_hw_cpu_reset();
}
MSH_CMD_EXPORT(reboot, reboot sample);
MSH_CMD_EXPORT(reboot, reboot system);
static void poweroff()
{
rt_hw_cpu_shutdown();
rt_hw_cpu_shutdown();
}
MSH_CMD_EXPORT(poweroff, shutdown power sample);
MSH_CMD_EXPORT(poweroff, shutdown system);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册