diff options
| author | copilot-swe-agent[bot] <[email protected]> | 2025-10-26 07:04:31 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] <[email protected]> | 2025-10-26 07:04:31 +0000 |
| commit | f2d0b8a6265c17816454b658d96ff46691ebcdac (patch) | |
| tree | 6b57ab93122faaea00efe7a105969250d8a70d3b /examples | |
| parent | 42aef81d15347b138daf1f790c4bcf541cae3a02 (diff) | |
Remove deprecated FINSH_FUNCTION_EXPORT macro and all usages
Co-authored-by: Rbb666 <[email protected]>
Diffstat (limited to 'examples')
32 files changed, 0 insertions, 36 deletions
diff --git a/examples/file/listdir.c b/examples/file/listdir.c index d858a00bff..961a67a48d 100644 --- a/examples/file/listdir.c +++ b/examples/file/listdir.c @@ -69,7 +69,6 @@ void list_dir(const char* path) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(list_dir, list directory); static void cmd_list_dir(int argc, char *argv[]) { diff --git a/examples/file/readspeed.c b/examples/file/readspeed.c index dfa68ceb32..f427365f61 100644 --- a/examples/file/readspeed.c +++ b/examples/file/readspeed.c @@ -60,7 +60,6 @@ void readspeed(const char* filename, int block_size) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(readspeed, perform file read test); static void cmd_readspeed(int argc, char *argv[]) { diff --git a/examples/file/readwrite.c b/examples/file/readwrite.c index 5d0defeaa9..acb0b43083 100644 --- a/examples/file/readwrite.c +++ b/examples/file/readwrite.c @@ -149,7 +149,6 @@ __exit: #ifdef RT_USING_FINSH #include <finsh.h> /* export to finsh */ -FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test); static void cmd_readwrite(int argc, char *argv[]) { diff --git a/examples/file/seekdir.c b/examples/file/seekdir.c index 5198a8056b..957a9f8950 100644 --- a/examples/file/seekdir.c +++ b/examples/file/seekdir.c @@ -48,6 +48,5 @@ void seekdir_test(void) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(seekdir_test, perform directory seek test); MSH_CMD_EXPORT(seekdir_test, perform directory seek test); #endif /* RT_USING_FINSH */ diff --git a/examples/file/writespeed.c b/examples/file/writespeed.c index 87a4c329bd..8e82339523 100644 --- a/examples/file/writespeed.c +++ b/examples/file/writespeed.c @@ -68,7 +68,6 @@ void writespeed(const char* filename, int total_length, int block_size) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(writespeed, perform file write test); static void cmd_writespeed(int argc, char *argv[]) { diff --git a/examples/libc/dirent.c b/examples/libc/dirent.c index 03fa94151d..0a940722f7 100644 --- a/examples/libc/dirent.c +++ b/examples/libc/dirent.c @@ -56,4 +56,3 @@ int libc_dirent() closedir(dirp); return result; } -FINSH_FUNCTION_EXPORT(libc_dirent, dirent test for libc); diff --git a/examples/libc/env.c b/examples/libc/env.c index 05005c2d1f..33ec05ff1c 100644 --- a/examples/libc/env.c +++ b/examples/libc/env.c @@ -19,4 +19,3 @@ int libc_env() printf("foo=%s\n", getenv("foo")); return 0; } -FINSH_FUNCTION_EXPORT(libc_env, get/set_env test); diff --git a/examples/libc/ex1.c b/examples/libc/ex1.c index 8f0ccfff1c..7505448742 100644 --- a/examples/libc/ex1.c +++ b/examples/libc/ex1.c @@ -42,4 +42,3 @@ int libc_ex1(void) return ret; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex1, example 1 for libc); diff --git a/examples/libc/ex2.c b/examples/libc/ex2.c index df8f9a26a3..ff4b83c6b9 100644 --- a/examples/libc/ex2.c +++ b/examples/libc/ex2.c @@ -119,4 +119,3 @@ int libc_ex2(void) return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex2, example 2 for libc); diff --git a/examples/libc/ex3.c b/examples/libc/ex3.c index 615ed8f35c..e56c70b0c2 100644 --- a/examples/libc/ex3.c +++ b/examples/libc/ex3.c @@ -55,7 +55,6 @@ int libc_ex3() return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex3, example 5 for libc); /* This is the cleanup function that is called when the threads are cancelled */ diff --git a/examples/libc/ex4.c b/examples/libc/ex4.c index df8839c5bc..695c6208e8 100644 --- a/examples/libc/ex4.c +++ b/examples/libc/ex4.c @@ -113,4 +113,3 @@ int libc_ex4() pthread_join(th2, NULL); } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex4, example 4 for libc); diff --git a/examples/libc/ex5.c b/examples/libc/ex5.c index cce5306894..aade8e4e43 100644 --- a/examples/libc/ex5.c +++ b/examples/libc/ex5.c @@ -109,5 +109,4 @@ int libc_ex5(void) return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex5, example 5 for libc); diff --git a/examples/libc/ex6.c b/examples/libc/ex6.c index 20ab0d8e5d..1887e37413 100644 --- a/examples/libc/ex6.c +++ b/examples/libc/ex6.c @@ -42,4 +42,3 @@ int libc_ex6(void) { return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex6, example 6 for libc); diff --git a/examples/libc/ex7.c b/examples/libc/ex7.c index b1969c8663..a447182979 100644 --- a/examples/libc/ex7.c +++ b/examples/libc/ex7.c @@ -106,4 +106,3 @@ int libc_ex7(void) { return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_ex7, example 7 for libc); diff --git a/examples/libc/file.c b/examples/libc/file.c index 918fca3b86..79eccc6c66 100644 --- a/examples/libc/file.c +++ b/examples/libc/file.c @@ -35,7 +35,6 @@ void libc_fstat() printf("fstat result: %d\n", fstat(fd, &s)); close(fd); } -FINSH_FUNCTION_EXPORT(libc_fstat, fstat test for libc); void libc_lseek() { @@ -53,7 +52,6 @@ void libc_lseek() printf("end: %d\n", lseek(fd, 0, SEEK_END)); close(fd); } -FINSH_FUNCTION_EXPORT(libc_lseek, lseek test for libc); void sleep(int tick) { @@ -517,4 +515,3 @@ int libc_fseek(void) return result; } -FINSH_FUNCTION_EXPORT(libc_fseek, lseek test for libc); diff --git a/examples/libc/memory.c b/examples/libc/memory.c index 4a31b69017..12c954762c 100644 --- a/examples/libc/memory.c +++ b/examples/libc/memory.c @@ -57,4 +57,3 @@ int libc_mem(void) return errors != 0; } -FINSH_FUNCTION_EXPORT(libc_mem, memory test for libc); diff --git a/examples/libc/mq.c b/examples/libc/mq.c index a7f3f924dc..a6ccbdc838 100644 --- a/examples/libc/mq.c +++ b/examples/libc/mq.c @@ -126,4 +126,3 @@ int libc_mq() return 0; } #include <finsh.h> -FINSH_FUNCTION_EXPORT(libc_mq, posix mqueue test); diff --git a/examples/libc/printf.c b/examples/libc/printf.c index c7968b9a0b..63a59e9e77 100644 --- a/examples/libc/printf.c +++ b/examples/libc/printf.c @@ -177,7 +177,6 @@ void libc_printf() printf_test(); } -FINSH_FUNCTION_EXPORT(libc_printf, printf test in libc); void libc_dprintf() @@ -191,7 +190,6 @@ void libc_dprintf() close(fd); } } -FINSH_FUNCTION_EXPORT(libc_dprintf, dprintf test); void libc_fdopen() @@ -207,4 +205,3 @@ void libc_fdopen() fclose(fp); } } -FINSH_FUNCTION_EXPORT(libc_fdopen, fdopen test); diff --git a/examples/libc/rand.c b/examples/libc/rand.c index 96f5628bb8..a6b848582f 100644 --- a/examples/libc/rand.c +++ b/examples/libc/rand.c @@ -44,4 +44,3 @@ int libc_rand(void) return 1; } } -FINSH_FUNCTION_EXPORT(libc_rand, rand test for libc); diff --git a/examples/libc/sem.c b/examples/libc/sem.c index 55b85114b8..ad276cf45d 100644 --- a/examples/libc/sem.c +++ b/examples/libc/sem.c @@ -71,4 +71,3 @@ void libc_sem() rt_thread_startup(tid); } } -FINSH_FUNCTION_EXPORT(libc_sem, posix semaphore test); diff --git a/examples/libc/time.c b/examples/libc/time.c index 5e91c1df80..9a9fa76334 100644 --- a/examples/libc/time.c +++ b/examples/libc/time.c @@ -24,4 +24,3 @@ int speed() printf("%d\n", time(0)); return 0; } -FINSH_FUNCTION_EXPORT(speed, speed test); diff --git a/examples/network/chargen.c b/examples/network/chargen.c index 69a6b13a5d..b312b46c2d 100644 --- a/examples/network/chargen.c +++ b/examples/network/chargen.c @@ -240,5 +240,4 @@ void chargen() { chargen_init(); } -FINSH_FUNCTION_EXPORT(chargen, start chargen server); #endif diff --git a/examples/network/tcpsendpacket.c b/examples/network/tcpsendpacket.c index f608f5173f..5f5bc21475 100644 --- a/examples/network/tcpsendpacket.c +++ b/examples/network/tcpsendpacket.c @@ -84,6 +84,5 @@ void tcp_senddata(const char *url, int port, int length) #ifdef RT_USING_FINSH #include <finsh.h> /* 输出tcpclient函数到finsh shell中 */ -FINSH_FUNCTION_EXPORT(tcp_senddata, send a packet through tcp connection); #endif diff --git a/examples/test/device_test.c b/examples/test/device_test.c index 327caa94e9..da6ff09f8a 100644 --- a/examples/test/device_test.c +++ b/examples/test/device_test.c @@ -511,6 +511,5 @@ int device_test(const char * device_name) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(device_test, e.g: device_test("sd0")); #endif diff --git a/examples/test/dhry_1.c b/examples/test/dhry_1.c index 44283649f6..87e959e6de 100644 --- a/examples/test/dhry_1.c +++ b/examples/test/dhry_1.c @@ -346,4 +346,3 @@ register int l; #endif #include <finsh.h> -FINSH_FUNCTION_EXPORT(dhry_test, dhry test); diff --git a/examples/test/fs_test.c b/examples/test/fs_test.c index 7fd70284cf..269c1b8ff8 100644 --- a/examples/test/fs_test.c +++ b/examples/test/fs_test.c @@ -293,5 +293,4 @@ void fs_test(rt_uint32_t arg) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(fs_test, file system R/W test. e.g: fs_test(3)); #endif diff --git a/examples/test/mem_test.c b/examples/test/mem_test.c index cd7d1b3552..e1257f86e4 100644 --- a/examples/test/mem_test.c +++ b/examples/test/mem_test.c @@ -110,5 +110,4 @@ void mem_test(uint32_t address, uint32_t size ) #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(mem_test, mem_test(0xA0000000, 0x00100000) ); #endif diff --git a/examples/test/net_test.c b/examples/test/net_test.c index 04203409a5..569c72030b 100644 --- a/examples/test/net_test.c +++ b/examples/test/net_test.c @@ -342,4 +342,3 @@ void net_test(void) rt_thread_startup(tcpecho_socket_tid); } } -FINSH_FUNCTION_EXPORT(net_test, network test); diff --git a/examples/test/rtc_test.c b/examples/test/rtc_test.c index e8754e72d5..481474f8a2 100644 --- a/examples/test/rtc_test.c +++ b/examples/test/rtc_test.c @@ -56,6 +56,5 @@ int rtc_test(void) } #ifdef RT_USING_FINSH #include <finsh.h> -FINSH_FUNCTION_EXPORT(rtc_test, rtc driver test. e.g: rtc_test()); MSH_CMD_EXPORT(rtc_test, rtc driver test. e.g: rtc_test()); #endif diff --git a/examples/ymodem/echo.c b/examples/ymodem/echo.c index fdd7e5228b..82bc7e0882 100644 --- a/examples/ymodem/echo.c +++ b/examples/ymodem/echo.c @@ -63,6 +63,5 @@ void rym_cat_vcom(void) rym_cat_to_dev(idev, odev); } -FINSH_FUNCTION_EXPORT(rym_cat_vcom, test the YModem); #endif diff --git a/examples/ymodem/null.c b/examples/ymodem/null.c index 640b8ba11b..2476610b64 100644 --- a/examples/ymodem/null.c +++ b/examples/ymodem/null.c @@ -32,6 +32,5 @@ rt_err_t rym_null(char *devname) return rym_recv_on_device(&rctx, dev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX, RT_NULL, _rym_dummy_write, RT_NULL, 1000); } -FINSH_FUNCTION_EXPORT(rym_null, dump data to null); #endif diff --git a/examples/ymodem/tofile.c b/examples/ymodem/tofile.c index 8fb2d0c06b..1995b3e8c2 100644 --- a/examples/ymodem/tofile.c +++ b/examples/ymodem/tofile.c @@ -122,5 +122,4 @@ rt_err_t ry(char *dname) return res; } -FINSH_FUNCTION_EXPORT(ry, receive files by ymodem protocol); #endif |
