We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93bcc2e commit 623bf0aCopy full SHA for 623bf0a
bsp/ls2kdev/applications/pmcon.c
@@ -1,15 +1,26 @@
1
+/*
2
+ * Copyright (c) 2006-2020, RT-Thread Development Team
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
6
+ * Change Logs:
7
+ * Date Author Notes
8
+ * 2020-09-17 maoxiaochuan first version
9
+ */
10
+
11
12
#include <rtthread.h>
13
14
static void reboot()
15
{
- rt_hw_cpu_reset();
16
+ rt_hw_cpu_reset();
17
}
-MSH_CMD_EXPORT(reboot, reboot sample);
18
+MSH_CMD_EXPORT(reboot, reboot system);
19
20
21
static void poweroff()
22
- rt_hw_cpu_shutdown();
23
+ rt_hw_cpu_shutdown();
24
-MSH_CMD_EXPORT(poweroff, shutdown power sample);
25
+MSH_CMD_EXPORT(poweroff, shutdown system);
26
0 commit comments