summaryrefslogtreecommitdiff
path: root/bsp/at91sam9g45
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-09-05 01:50:58 -0400
committerMeco Man <[email protected]>2021-09-05 01:57:26 -0400
commite18d44940f966b1c132bf242786c62e2b6e57b7a (patch)
tree8b94cef59ab612c56aad2c944d306a4594220753 /bsp/at91sam9g45
parent31061873aeac364ac8ddd685e1f3b91c4c2f5f41 (diff)
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
Diffstat (limited to 'bsp/at91sam9g45')
-rw-r--r--bsp/at91sam9g45/platform/interrupt.c4
-rw-r--r--bsp/at91sam9g45/platform/reset.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/bsp/at91sam9g45/platform/interrupt.c b/bsp/at91sam9g45/platform/interrupt.c
index c8afc998f1..c3dd99e798 100644
--- a/bsp/at91sam9g45/platform/interrupt.c
+++ b/bsp/at91sam9g45/platform/interrupt.c
@@ -445,7 +445,6 @@ void list_irq(void)
}
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(list_irq, list system irq);
#ifdef FINSH_USING_MSH
int cmd_list_irq(int argc, char** argv)
@@ -453,8 +452,7 @@ int cmd_list_irq(int argc, char** argv)
list_irq();
return 0;
}
-FINSH_FUNCTION_EXPORT_ALIAS(cmd_list_irq, __cmd_list_irq, list system irq.);
-
+MSH_CMD_EXPORT_ALIAS(cmd_list_irq, list_irq, list system irq);
#endif
#endif
#endif
diff --git a/bsp/at91sam9g45/platform/reset.c b/bsp/at91sam9g45/platform/reset.c
index 8abbf7a9fb..33d6f97283 100644
--- a/bsp/at91sam9g45/platform/reset.c
+++ b/bsp/at91sam9g45/platform/reset.c
@@ -30,7 +30,6 @@ void machine_shutdown(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT_ALIAS(rt_hw_cpu_reset, reset, restart the system);
#ifdef FINSH_USING_MSH
int cmd_reset(int argc, char** argv)
@@ -38,15 +37,14 @@ int cmd_reset(int argc, char** argv)
rt_hw_cpu_reset();
return 0;
}
+MSH_CMD_EXPORT_ALIAS(cmd_reset, reset, restart the system);
int cmd_shutdown(int argc, char** argv)
{
rt_hw_cpu_shutdown();
return 0;
}
-
-FINSH_FUNCTION_EXPORT_ALIAS(cmd_reset, __cmd_reset, restart the system.);
-FINSH_FUNCTION_EXPORT_ALIAS(cmd_shutdown, __cmd_shutdown, shutdown the system.);
+MSH_CMD_EXPORT_ALIAS(cmd_shutdown, shutdown, shutdown the system);
#endif
#endif