diff options
| author | Bernard Xiong <[email protected]> | 2026-08-26 10:53:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-26 10:53:23 +0800 |
| commit | 0305faf806f855dc91ec0866fc7f654aafc29a37 (patch) | |
| tree | 57d3ab1f01ad6374d8cf5e93f12f65dcb29c8a06 /components | |
| parent | 64f1fa4a0dd610b1dece5755207a54c0b324569f (diff) | |
[finsh] Remove deprecated FINSH_FUNCTION_EXPORT_ALIAS#11734
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/dfs_v1/src/dfs_posix.c | 4 | ||||
| -rw-r--r-- | components/dfs/dfs_v2/src/dfs_posix.c | 4 | ||||
| -rw-r--r-- | components/drivers/mtd/mtd_nand.c | 9 | ||||
| -rw-r--r-- | components/drivers/pm/pm.c | 1 | ||||
| -rw-r--r-- | components/finsh/finsh.h | 11 |
5 files changed, 0 insertions, 29 deletions
diff --git a/components/dfs/dfs_v1/src/dfs_posix.c b/components/dfs/dfs_v1/src/dfs_posix.c index 9e11307709..6e40a175f6 100644 --- a/components/dfs/dfs_v1/src/dfs_posix.c +++ b/components/dfs/dfs_v1/src/dfs_posix.c @@ -982,10 +982,6 @@ int chdir(const char *path) return 0; } RTM_EXPORT(chdir); - -#ifdef RT_USING_FINSH -FINSH_FUNCTION_EXPORT_ALIAS(chdir, cd, change current working directory); -#endif #endif /** diff --git a/components/dfs/dfs_v2/src/dfs_posix.c b/components/dfs/dfs_v2/src/dfs_posix.c index 2ca7b66f7e..7351578656 100644 --- a/components/dfs/dfs_v2/src/dfs_posix.c +++ b/components/dfs/dfs_v2/src/dfs_posix.c @@ -1252,10 +1252,6 @@ int chdir(const char *path) return 0; } RTM_EXPORT(chdir); - -#ifdef RT_USING_FINSH -FINSH_FUNCTION_EXPORT_ALIAS(chdir, cd, change current working directory); -#endif #endif /** diff --git a/components/drivers/mtd/mtd_nand.c b/components/drivers/mtd/mtd_nand.c index 65402194c4..0f17075751 100644 --- a/components/drivers/mtd/mtd_nand.c +++ b/components/drivers/mtd/mtd_nand.c @@ -411,15 +411,6 @@ help: MSH_CMD_EXPORT(mtd_nand, MTD nand device test function); #endif /* RT_USING_FINSH */ -#ifndef RT_USING_FINSH_ONLY -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nandid, nand_id, read ID - nandid(name)); -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_read, nand_read, read page in nand - nand_read(name, block, page)); -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_readoob, nand_readoob, read spare data in nand - nand_readoob(name, block, page)); -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_write, nand_write, write dump data to nand - nand_write(name, block, page)); -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_erase, nand_erase, nand_erase(name, block)); -FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_erase_all, nand_erase_all, erase all of nand device - nand_erase_all(name, block)); -#endif /* RT_USING_FINSH_ONLY */ - #endif /* defined(RT_MTD_NAND_DEBUG) && defined(RT_USING_FINSH) */ #endif /* RT_USING_MTD_NAND */ diff --git a/components/drivers/pm/pm.c b/components/drivers/pm/pm.c index 9acbf00147..290d8d4821 100644 --- a/components/drivers/pm/pm.c +++ b/components/drivers/pm/pm.c @@ -1299,7 +1299,6 @@ static void rt_pm_dump_status(void) } rt_kprintf("+--------+------+------------+-----------+\n"); } -FINSH_FUNCTION_EXPORT_ALIAS(rt_pm_dump_status, pm_dump, dump power management status); MSH_CMD_EXPORT_ALIAS(rt_pm_dump_status, pm_dump, dump power management status); #endif diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h index a40d1b3ed9..f6d959210d 100644 --- a/components/finsh/finsh.h +++ b/components/finsh/finsh.h @@ -124,17 +124,6 @@ typedef long (*syscall_func)(void); /** * @ingroup group_finsh * - * @brief Exports a system function with an alias name to finsh shell. - * - * @param[in] name Name of function. - * @param[in] alias Alias name of function. - * @param[in] desc Description of function, which will show in help. - */ -#define FINSH_FUNCTION_EXPORT_ALIAS(name, alias, desc) - -/** - * @ingroup group_finsh - * * @brief Exports a command to module shell. * * @b Parameters |
