-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[clean] Replace deprecated FINSH_FUNCTION_EXPORT macros with MSH_CMD_EXPORT #10843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
1899804
60c9bc2
42aef81
f2d0b8a
af25087
8ef0add
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,6 +202,5 @@ void list_irq(void) | |
| } | ||
|
|
||
| #include <finsh.h> | ||
| FINSH_FUNCTION_EXPORT(list_irq, list system irq); | ||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,7 +153,6 @@ void nfs_start(void) | |
| } | ||
|
|
||
| #include "finsh.h" | ||
|
||
| FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); | ||
| #endif | ||
|
|
||
| /*@}*/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,7 +98,6 @@ void nfs_start(void) | |
| } | ||
|
|
||
| #include "finsh.h" | ||
| FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem); | ||
| #endif | ||
|
|
||
| /*@}*/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -836,7 +836,6 @@ void accel_cal(rt_uint8_t mode, rt_uint32_t second) | |
|
|
||
| rt_kprintf("Calibration done.\n"); | ||
| } | ||
| FINSH_FUNCTION_EXPORT(accel_cal, auto-zero calibration.) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 明白了,我需要将所有 Understood, I need to replace all There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 已完成,所有 FINSH_FUNCTION_EXPORT 已替换为 MSH_CMD_EXPORT,commit: f2c36dbb Completed, all FINSH_FUNCTION_EXPORT replaced with MSH_CMD_EXPORT, commit: f2c36dbb |
||
|
|
||
| void list_accel(void) | ||
| { | ||
|
|
@@ -845,7 +844,6 @@ void list_accel(void) | |
| efm_accel_get_data(&data, false); | ||
| rt_kprintf("X: %d, Y: %d, Z: %d\n", data.x, data.y, data.z); | ||
| } | ||
| FINSH_FUNCTION_EXPORT(list_accel, list accelerometer info.) | ||
|
|
||
| void test_accel(rt_uint8_t mode) | ||
| { | ||
|
|
@@ -880,7 +878,6 @@ void test_accel(rt_uint8_t mode) | |
| } | ||
| } | ||
| } | ||
| FINSH_FUNCTION_EXPORT(test_accel, list accelerometer info.) | ||
| #endif | ||
|
|
||
| #endif | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot
FINSH_FUNCTION_EXPORT_ALIAS调用,统一修改为MSH_CMD_EXPORT进行替换,请注意MSH_CMD_EXPORT的正确使用。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot
FINSH_FUNCTION_EXPORT_ALIAS调用,统一修改为MSH_CMD_EXPORT进行替换,请注意MSH_CMD_EXPORT的正确使用。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
明白了,我会将
FINSH_FUNCTION_EXPORT_ALIAS正确替换为MSH_CMD_EXPORT_ALIAS,保持相同的参数顺序。Understood, I will properly replace
FINSH_FUNCTION_EXPORT_ALIASwithMSH_CMD_EXPORT_ALIAS, maintaining the same parameter order.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已完成,所有 FINSH_FUNCTION_EXPORT_ALIAS 已正确替换为 MSH_CMD_EXPORT_ALIAS,保持相同的参数顺序,commit: f2c36dbb
Completed, all FINSH_FUNCTION_EXPORT_ALIAS properly replaced with MSH_CMD_EXPORT_ALIAS with same parameter order, commit: f2c36dbb