diff options
| author | Bernard Xiong <[email protected]> | 2021-09-07 20:25:26 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-07 20:25:26 +0800 |
| commit | 5595df0b8bbf4d15f8100ab0fc10e75f8267c396 (patch) | |
| tree | bff7e4fb04ebdedce7f51d6175203968953328f9 | |
| parent | 9ef0c94eca1e479fb07b95fb32ea9f50aca07999 (diff) | |
| parent | e4a404c3efd19bbddc5ebdc14807d1702550c507 (diff) | |
Merge pull request #5016 from mysterywolf/finsh
[msh] add comments
| -rw-r--r-- | components/finsh/finsh.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h index 380cade403..98048ebad4 100644 --- a/components/finsh/finsh.h +++ b/components/finsh/finsh.h @@ -116,15 +116,25 @@ typedef long (*syscall_func)(void); #define FINSH_FUNCTION_EXPORT_ALIAS(name, alias, desc) /** - * @ingroup finsh + * @ingroup msh * * This macro exports a command to module shell. * - * @param command the name of command. - * @param desc the description of command, which will show in help. + * @param command is the name of the command. + * @param desc is the description of the command, which will show in help list. */ #define MSH_CMD_EXPORT(command, desc) \ MSH_FUNCTION_EXPORT_CMD(command, command, desc) + +/** + * @ingroup msh + * + * This macro exports a command with alias to module shell. + * + * @param command is the name of the command. + * @param alias is the alias of the command. + * @param desc is the description of the command, which will show in help list. + */ #define MSH_CMD_EXPORT_ALIAS(command, alias, desc) \ MSH_FUNCTION_EXPORT_CMD(command, alias, desc) |
