diff options
| author | michael <[email protected]> | 2020-09-17 10:27:04 +0800 |
|---|---|---|
| committer | michael <[email protected]> | 2020-09-17 10:39:45 +0800 |
| commit | 623bf0abc923210c1b990210a421660122b6c296 (patch) | |
| tree | fd08bdee66374d20c50f1f21627979288a204d81 | |
| parent | 93bcc2e0d289bc455dd9ac9ca58818ff9ec1c690 (diff) | |
bsp:ls2k:unify code format
| -rw-r--r-- | bsp/ls2kdev/applications/pmcon.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/bsp/ls2kdev/applications/pmcon.c b/bsp/ls2kdev/applications/pmcon.c index 82bca9c947..92b06cc8f2 100644 --- a/bsp/ls2kdev/applications/pmcon.c +++ b/bsp/ls2kdev/applications/pmcon.c @@ -1,15 +1,26 @@ +/* + * 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); |
