diff options
| author | guo <[email protected]> | 2021-09-05 19:49:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-05 19:49:43 +0800 |
| commit | 877bb072cf3c5ce1bc45e29cd79fd9f5144f22be (patch) | |
| tree | e5a6488770dc6540927e47df5b8a808bd1f7e521 /examples | |
| parent | 8e7ed7e1bb9c263390dc13b8e07686b9070c9d53 (diff) | |
| parent | e18d44940f966b1c132bf242786c62e2b6e57b7a (diff) | |
Merge pull request #5014 from mysterywolf/finsh
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/file/readspeed.c | 2 | ||||
| -rw-r--r-- | examples/file/readwrite.c | 2 | ||||
| -rw-r--r-- | examples/file/writespeed.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/file/readspeed.c b/examples/file/readspeed.c index 61b1a8a696..5f4cad3190 100644 --- a/examples/file/readspeed.c +++ b/examples/file/readspeed.c @@ -81,5 +81,5 @@ static void cmd_readspeed(int argc, char *argv[]) } readspeed(filename, block_size); } -FINSH_FUNCTION_EXPORT_ALIAS(cmd_readspeed, __cmd_readspeed, test file system read speed); +MSH_CMD_EXPORT_ALIAS(cmd_readspeed, readspeed, test file system read speed); #endif /* RT_USING_FINSH */ diff --git a/examples/file/readwrite.c b/examples/file/readwrite.c index 9b27da1b01..d1dd5bc038 100644 --- a/examples/file/readwrite.c +++ b/examples/file/readwrite.c @@ -162,5 +162,5 @@ static void cmd_readwrite(int argc, char *argv[]) } readwrite(filename); } -FINSH_FUNCTION_EXPORT_ALIAS(cmd_readwrite, __cmd_readwrite, perform file read and write test); +MSH_CMD_EXPORT_ALIAS(cmd_readwrite, readwrite, perform file read and write test); #endif /* RT_USING_FINSH */ diff --git a/examples/file/writespeed.c b/examples/file/writespeed.c index 8ae6f6e5a8..f76027d28b 100644 --- a/examples/file/writespeed.c +++ b/examples/file/writespeed.c @@ -92,5 +92,5 @@ static void cmd_writespeed(int argc, char *argv[]) } writespeed(filename, length, block_size); } -FINSH_FUNCTION_EXPORT_ALIAS(cmd_writespeed, __cmd_writespeed, test file system write speed); +MSH_CMD_EXPORT_ALIAS(cmd_writespeed, writespeed, test file system write speed); #endif /* RT_USING_FINSH */ |
