summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2025-10-26 07:04:31 +0000
committercopilot-swe-agent[bot] <[email protected]>2025-10-26 07:04:31 +0000
commitf2d0b8a6265c17816454b658d96ff46691ebcdac (patch)
tree6b57ab93122faaea00efe7a105969250d8a70d3b /components
parent42aef81d15347b138daf1f790c4bcf541cae3a02 (diff)
Remove deprecated FINSH_FUNCTION_EXPORT macro and all usages
Co-authored-by: Rbb666 <[email protected]>
Diffstat (limited to 'components')
-rw-r--r--components/dfs/dfs_v1/src/dfs_file.c4
-rw-r--r--components/dfs/dfs_v1/src/dfs_fs.c2
-rw-r--r--components/dfs/dfs_v2/src/dfs_file.c1
-rw-r--r--components/dfs/dfs_v2/src/dfs_posix.c1
-rw-r--r--components/drivers/spi/dev_spi_wifi_rw009.c3
-rw-r--r--components/drivers/spi/enc28j60.c1
-rw-r--r--components/finsh/finsh.h11
-rw-r--r--components/net/lwip/lwip-1.4.1/src/apps/ping/ping.c1
-rw-r--r--components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c1
-rw-r--r--components/net/lwip/lwip-2.0.3/src/apps/tftp/tftp_port.c1
-rw-r--r--components/net/lwip/lwip-2.1.2/src/apps/ping/ping.c1
-rw-r--r--components/net/lwip/lwip-2.1.2/src/apps/tftp/tftp_port.c1
-rw-r--r--components/net/lwip/port/ethernetif.c5
13 files changed, 0 insertions, 33 deletions
diff --git a/components/dfs/dfs_v1/src/dfs_file.c b/components/dfs/dfs_v1/src/dfs_file.c
index dce75a9f10..252fa5163d 100644
--- a/components/dfs/dfs_v1/src/dfs_file.c
+++ b/components/dfs/dfs_v1/src/dfs_file.c
@@ -853,7 +853,6 @@ void ls(const char *pathname)
if (pathname == NULL)
rt_free(path);
}
-FINSH_FUNCTION_EXPORT(ls, list directory contents);
void rm(const char *filename)
{
@@ -862,7 +861,6 @@ void rm(const char *filename)
rt_kprintf("Delete %s failed\n", filename);
}
}
-FINSH_FUNCTION_EXPORT(rm, remove files or directories);
void cat(const char *filename)
{
@@ -893,7 +891,6 @@ void cat(const char *filename)
dfs_file_close(&fd);
}
-FINSH_FUNCTION_EXPORT(cat, print file);
#ifdef DFS_USING_POSIX
#define BUF_SZ 4096
@@ -1119,7 +1116,6 @@ void copy(const char *src, const char *dst)
}
}
}
-FINSH_FUNCTION_EXPORT(copy, copy file or dir)
#endif /* DFS_USING_POSIX */
#endif /* RT_USING_FINSH */
diff --git a/components/dfs/dfs_v1/src/dfs_fs.c b/components/dfs/dfs_v1/src/dfs_fs.c
index 810690bee9..297aacb6ba 100644
--- a/components/dfs/dfs_v1/src/dfs_fs.c
+++ b/components/dfs/dfs_v1/src/dfs_fs.c
@@ -618,7 +618,6 @@ void mkfs(const char *fs_name, const char *device_name)
{
dfs_mkfs(fs_name, device_name);
}
-FINSH_FUNCTION_EXPORT(mkfs, make a file system);
int df(const char *path)
{
@@ -653,7 +652,6 @@ int df(const char *path)
(unsigned long)cap, minor, unit_str[unit_index], buffer.f_bfree, buffer.f_bsize);
return 0;
}
-FINSH_FUNCTION_EXPORT(df, get disk free);
#endif
/**@}*/
diff --git a/components/dfs/dfs_v2/src/dfs_file.c b/components/dfs/dfs_v2/src/dfs_file.c
index 54f6ca6bc1..979cf8a08d 100644
--- a/components/dfs/dfs_v2/src/dfs_file.c
+++ b/components/dfs/dfs_v2/src/dfs_file.c
@@ -3027,6 +3027,5 @@ void copy(const char *src, const char *dst)
}
}
}
-FINSH_FUNCTION_EXPORT(copy, copy file or dir)
#endif \ No newline at end of file
diff --git a/components/dfs/dfs_v2/src/dfs_posix.c b/components/dfs/dfs_v2/src/dfs_posix.c
index da446e35ed..b84cd81ba4 100644
--- a/components/dfs/dfs_v2/src/dfs_posix.c
+++ b/components/dfs/dfs_v2/src/dfs_posix.c
@@ -849,7 +849,6 @@ RTM_EXPORT(mkdir);
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(mkdir, create a directory);
#endif
/**
diff --git a/components/drivers/spi/dev_spi_wifi_rw009.c b/components/drivers/spi/dev_spi_wifi_rw009.c
index b3bd807ebd..e6971c796b 100644
--- a/components/drivers/spi/dev_spi_wifi_rw009.c
+++ b/components/drivers/spi/dev_spi_wifi_rw009.c
@@ -845,8 +845,5 @@ static rt_err_t rw009_scan(void)
return result;
}
-FINSH_FUNCTION_EXPORT(rw009_scan, SACN and list AP.);
-FINSH_FUNCTION_EXPORT(rw009_join, RW009 join to AP.);
-FINSH_FUNCTION_EXPORT(rw009_rssi, get RW009 current AP rssi.);
#endif // RT_USING_FINSH
diff --git a/components/drivers/spi/enc28j60.c b/components/drivers/spi/enc28j60.c
index fe0bf46fd6..e890bc4ca7 100644
--- a/components/drivers/spi/enc28j60.c
+++ b/components/drivers/spi/enc28j60.c
@@ -895,5 +895,4 @@ static void enc28j60(void)
enc28j60_unlock(&enc28j60_dev);
}
-FINSH_FUNCTION_EXPORT(enc28j60, dump enc28j60 registers);
#endif
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index f6d959210d..93dcb13401 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -110,17 +110,6 @@ typedef long (*syscall_func)(void);
#define _MSH_FUNCTION_EXPORT_CMD3_OPT(a0, a1, a2, a3) \
MSH_FUNCTION_EXPORT_CMD(a0, a1, a2, a0##_msh_options)
-
-/**
- * @ingroup group_finsh
- *
- * @brief This macro exports a system function to finsh shell.
- *
- * @param[in] name Name of function.
- * @param[in] desc Description of function, which will show in help.
- */
-#define FINSH_FUNCTION_EXPORT(name, desc)
-
/**
* @ingroup group_finsh
*
diff --git a/components/net/lwip/lwip-1.4.1/src/apps/ping/ping.c b/components/net/lwip/lwip-1.4.1/src/apps/ping/ping.c
index 6251504f59..c5876db838 100644
--- a/components/net/lwip/lwip-1.4.1/src/apps/ping/ping.c
+++ b/components/net/lwip/lwip-1.4.1/src/apps/ping/ping.c
@@ -221,7 +221,6 @@ rt_err_t ping(char* target_name, rt_uint32_t times, rt_size_t size)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(ping, ping network host);
int cmd_ping(int argc, char **argv)
{
diff --git a/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c b/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c
index 989fb0507a..e8f88e9891 100644
--- a/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c
+++ b/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.c
@@ -221,7 +221,6 @@ rt_err_t ping(char* target_name, rt_uint32_t times, rt_size_t size)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(ping, ping network host);
int cmd_ping(int argc, char **argv)
{
diff --git a/components/net/lwip/lwip-2.0.3/src/apps/tftp/tftp_port.c b/components/net/lwip/lwip-2.0.3/src/apps/tftp/tftp_port.c
index 38221ac580..ae950c5748 100644
--- a/components/net/lwip/lwip-2.0.3/src/apps/tftp/tftp_port.c
+++ b/components/net/lwip/lwip-2.0.3/src/apps/tftp/tftp_port.c
@@ -66,7 +66,6 @@ static void tftp_server(uint8_t argc, char **argv)
rt_kprintf("TFTP server start failed.\n");
}
}
-FINSH_FUNCTION_EXPORT(tftp_server, start tftp server.);
MSH_CMD_EXPORT(tftp_server, start tftp server.);
diff --git a/components/net/lwip/lwip-2.1.2/src/apps/ping/ping.c b/components/net/lwip/lwip-2.1.2/src/apps/ping/ping.c
index 6251504f59..c5876db838 100644
--- a/components/net/lwip/lwip-2.1.2/src/apps/ping/ping.c
+++ b/components/net/lwip/lwip-2.1.2/src/apps/ping/ping.c
@@ -221,7 +221,6 @@ rt_err_t ping(char* target_name, rt_uint32_t times, rt_size_t size)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(ping, ping network host);
int cmd_ping(int argc, char **argv)
{
diff --git a/components/net/lwip/lwip-2.1.2/src/apps/tftp/tftp_port.c b/components/net/lwip/lwip-2.1.2/src/apps/tftp/tftp_port.c
index 38221ac580..ae950c5748 100644
--- a/components/net/lwip/lwip-2.1.2/src/apps/tftp/tftp_port.c
+++ b/components/net/lwip/lwip-2.1.2/src/apps/tftp/tftp_port.c
@@ -66,7 +66,6 @@ static void tftp_server(uint8_t argc, char **argv)
rt_kprintf("TFTP server start failed.\n");
}
}
-FINSH_FUNCTION_EXPORT(tftp_server, start tftp server.);
MSH_CMD_EXPORT(tftp_server, start tftp server.);
diff --git a/components/net/lwip/port/ethernetif.c b/components/net/lwip/port/ethernetif.c
index 0f32ac8511..69aadadec4 100644
--- a/components/net/lwip/port/ethernetif.c
+++ b/components/net/lwip/port/ethernetif.c
@@ -1075,7 +1075,6 @@ void set_if(char* netif_name, char* ip_addr, char* gw_addr, char* nm_addr)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(set_if, set network interface address);
#if LWIP_DNS
#include <lwip/dns.h>
@@ -1088,7 +1087,6 @@ void set_dns(uint8_t dns_num, char* dns_server)
dns_setserver(dns_num, &addr);
}
}
-FINSH_FUNCTION_EXPORT(set_dns, set DNS server address);
#endif
void list_if(void)
@@ -1174,7 +1172,6 @@ void list_if(void)
rt_exit_critical();
}
-FINSH_FUNCTION_EXPORT(list_if, list network interface information);
#if LWIP_TCP
#include <lwip/tcp.h>
@@ -1240,7 +1237,6 @@ void list_tcps(void)
}
rt_exit_critical();
}
-FINSH_FUNCTION_EXPORT(list_tcps, list all of tcp connections);
#endif /* LWIP_TCP */
#if LWIP_UDP
@@ -1270,7 +1266,6 @@ void list_udps(void)
}
rt_exit_critical();
}
-FINSH_FUNCTION_EXPORT(list_udps, list all of udp connections);
#endif /* LWIP_UDP */
#endif