summaryrefslogtreecommitdiff
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
parent42aef81d15347b138daf1f790c4bcf541cae3a02 (diff)
Remove deprecated FINSH_FUNCTION_EXPORT macro and all usages
Co-authored-by: Rbb666 <[email protected]>
-rw-r--r--bsp/apollo2/board/led.c1
-rw-r--r--bsp/asm9260t/platform/interrupt.c1
-rw-r--r--bsp/at91/at91sam9260/applications/application.c1
-rw-r--r--bsp/at91/at91sam9260/drivers/at91_mci.c2
-rw-r--r--bsp/at91/at91sam9260/drivers/at91_nand.c1
-rw-r--r--bsp/at91/at91sam9g45/applications/application.c1
-rw-r--r--bsp/at91/at91sam9g45/drivers/at91_mci.c2
-rw-r--r--bsp/dm365/applications/application.c1
-rw-r--r--bsp/dm365/drivers/davinci_emac.c1
-rw-r--r--bsp/dm365/platform/interrupt.c1
-rw-r--r--bsp/efm32/dev_accel.c3
-rw-r--r--bsp/efm32/dev_led.c2
-rw-r--r--bsp/efm32/dev_misc.c2
-rw-r--r--bsp/efm32/dev_sflash.c1
-rw-r--r--bsp/efm32/drv_emu.c1
-rw-r--r--bsp/efm32/drv_ethernet.c3
-rw-r--r--bsp/efm32/drv_sdcard.c1
-rw-r--r--bsp/frdm-k64f/board/drv_emac.c2
-rw-r--r--bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c1
-rw-r--r--bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c1
-rw-r--r--bsp/mini2440/drivers/dm9000.c1
-rw-r--r--bsp/mini4020/drivers/dm9161.c1
-rw-r--r--bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c7
-rw-r--r--bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c1
-rw-r--r--bsp/nxp/lpc/lpc178x/applications/application.c1
-rw-r--r--bsp/nxp/lpc/lpc178x/drivers/emac.c1
-rw-r--r--bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c1
-rw-r--r--bsp/nxp/lpc/lpc408x/drivers/drv_emac.c1
-rw-r--r--bsp/nxp/lpc/lpc408x/drivers/drv_led.c1
-rw-r--r--bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c1
-rw-r--r--bsp/nxp/lpc/lpc43xx/drivers/drv_led.c1
-rw-r--r--bsp/nxp/lpc/lpc5410x/drivers/drv_led.c1
-rw-r--r--bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c4
-rw-r--r--bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_lcd.c2
-rw-r--r--bsp/simulator/drivers/nanddrv_file.c1
-rwxr-xr-xbsp/simulator/drivers/sd_sim.c1
-rw-r--r--bsp/simulator/drivers/sst25vfxx_mtd_sim.c1
-rw-r--r--bsp/simulator/pcap/pcap_netif.c1
-rw-r--r--bsp/tm4c129x/drivers/drv_eth.c3
-rw-r--r--bsp/xplorer4330/drivers/drv_led.c1
-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
-rw-r--r--examples/file/listdir.c1
-rw-r--r--examples/file/readspeed.c1
-rw-r--r--examples/file/readwrite.c1
-rw-r--r--examples/file/seekdir.c1
-rw-r--r--examples/file/writespeed.c1
-rw-r--r--examples/libc/dirent.c1
-rw-r--r--examples/libc/env.c1
-rw-r--r--examples/libc/ex1.c1
-rw-r--r--examples/libc/ex2.c1
-rw-r--r--examples/libc/ex3.c1
-rw-r--r--examples/libc/ex4.c1
-rw-r--r--examples/libc/ex5.c1
-rw-r--r--examples/libc/ex6.c1
-rw-r--r--examples/libc/ex7.c1
-rw-r--r--examples/libc/file.c3
-rw-r--r--examples/libc/memory.c1
-rw-r--r--examples/libc/mq.c1
-rw-r--r--examples/libc/printf.c3
-rw-r--r--examples/libc/rand.c1
-rw-r--r--examples/libc/sem.c1
-rw-r--r--examples/libc/time.c1
-rw-r--r--examples/network/chargen.c1
-rw-r--r--examples/network/tcpsendpacket.c1
-rw-r--r--examples/test/device_test.c1
-rw-r--r--examples/test/dhry_1.c1
-rw-r--r--examples/test/fs_test.c1
-rw-r--r--examples/test/mem_test.c1
-rw-r--r--examples/test/net_test.c1
-rw-r--r--examples/test/rtc_test.c1
-rw-r--r--examples/ymodem/echo.c1
-rw-r--r--examples/ymodem/null.c1
-rw-r--r--examples/ymodem/tofile.c1
-rw-r--r--include/rtdef.h2
-rw-r--r--libcpu/arm/s3c24x0/rtc.c1
87 files changed, 0 insertions, 133 deletions
diff --git a/bsp/apollo2/board/led.c b/bsp/apollo2/board/led.c
index 5364667679..b48d1b6fe5 100644
--- a/bsp/apollo2/board/led.c
+++ b/bsp/apollo2/board/led.c
@@ -140,7 +140,6 @@ void led(rt_uint32_t led, rt_uint32_t state)
break;
}
}
-FINSH_FUNCTION_EXPORT(led, turn led (0 - 3) on (1) or off (0).)
#endif
/*@}*/
diff --git a/bsp/asm9260t/platform/interrupt.c b/bsp/asm9260t/platform/interrupt.c
index fd741de94b..677e1353fa 100644
--- a/bsp/asm9260t/platform/interrupt.c
+++ b/bsp/asm9260t/platform/interrupt.c
@@ -202,6 +202,5 @@ void list_irq(void)
}
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(list_irq, list system irq);
#endif
diff --git a/bsp/at91/at91sam9260/applications/application.c b/bsp/at91/at91sam9260/applications/application.c
index c1c5add633..82eb2c8fe0 100644
--- a/bsp/at91/at91sam9260/applications/application.c
+++ b/bsp/at91/at91sam9260/applications/application.c
@@ -152,7 +152,6 @@ void nfs_start(void)
}
#include "finsh.h"
-FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/
diff --git a/bsp/at91/at91sam9260/drivers/at91_mci.c b/bsp/at91/at91sam9260/drivers/at91_mci.c
index 93ed7a2bdb..6641c33cb7 100644
--- a/bsp/at91/at91sam9260/drivers/at91_mci.c
+++ b/bsp/at91/at91sam9260/drivers/at91_mci.c
@@ -892,7 +892,6 @@ err:
INIT_DEVICE_EXPORT(at91_mci_init);
#include "finsh.h"
-FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init);
void mci_dump(void)
{
@@ -907,4 +906,3 @@ void mci_dump(void)
}
}
-FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci);
diff --git a/bsp/at91/at91sam9260/drivers/at91_nand.c b/bsp/at91/at91sam9260/drivers/at91_nand.c
index 2fc5b2edc4..9844acba26 100644
--- a/bsp/at91/at91sam9260/drivers/at91_nand.c
+++ b/bsp/at91/at91sam9260/drivers/at91_nand.c
@@ -628,7 +628,6 @@ void nand_eraseall()
at9260_nand_erase_block(RT_NULL, index);
}
}
-FINSH_FUNCTION_EXPORT(nand_eraseall, erase all of block in the nand flash);
#endif //RT_USING_FINSH
diff --git a/bsp/at91/at91sam9g45/applications/application.c b/bsp/at91/at91sam9g45/applications/application.c
index 9775bc81d2..f0a6be19e2 100644
--- a/bsp/at91/at91sam9g45/applications/application.c
+++ b/bsp/at91/at91sam9g45/applications/application.c
@@ -153,7 +153,6 @@ void nfs_start(void)
}
#include "finsh.h"
-FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/
diff --git a/bsp/at91/at91sam9g45/drivers/at91_mci.c b/bsp/at91/at91sam9g45/drivers/at91_mci.c
index 0942e8aafe..78e48476a0 100644
--- a/bsp/at91/at91sam9g45/drivers/at91_mci.c
+++ b/bsp/at91/at91sam9g45/drivers/at91_mci.c
@@ -892,7 +892,6 @@ err:
INIT_DEVICE_EXPORT(at91_mci_init);
#include "finsh.h"
-FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init);
void mci_dump(void)
{
@@ -907,4 +906,3 @@ void mci_dump(void)
}
}
-FINSH_FUNCTION_EXPORT(mci_dump, dump register for mci);
diff --git a/bsp/dm365/applications/application.c b/bsp/dm365/applications/application.c
index e810f09ee6..47a25582c2 100644
--- a/bsp/dm365/applications/application.c
+++ b/bsp/dm365/applications/application.c
@@ -98,7 +98,6 @@ void nfs_start(void)
}
#include "finsh.h"
-FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/
diff --git a/bsp/dm365/drivers/davinci_emac.c b/bsp/dm365/drivers/davinci_emac.c
index f294727c56..c6a3e32272 100644
--- a/bsp/dm365/drivers/davinci_emac.c
+++ b/bsp/dm365/drivers/davinci_emac.c
@@ -1741,7 +1741,6 @@ void dump_emac_stats(void)
rt_kprintf("\n");
}
-FINSH_FUNCTION_EXPORT(dump_emac_stats, dump emac statistics);
#ifdef FINSH_USING_MSH
int cmd_dump_emac_stats(int argc, char** argv)
diff --git a/bsp/dm365/platform/interrupt.c b/bsp/dm365/platform/interrupt.c
index ed601ccf06..dbf635cec8 100644
--- a/bsp/dm365/platform/interrupt.c
+++ b/bsp/dm365/platform/interrupt.c
@@ -278,7 +278,6 @@ void list_irq(void)
}
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(list_irq, list system irq);
#ifdef FINSH_USING_MSH
int cmd_list_irq(int argc, char** argv)
diff --git a/bsp/efm32/dev_accel.c b/bsp/efm32/dev_accel.c
index fc90cad873..6b4d60c715 100644
--- a/bsp/efm32/dev_accel.c
+++ b/bsp/efm32/dev_accel.c
@@ -836,7 +836,6 @@ void accel_cal(rt_uint8_t mode, rt_uint32_t second)
rt_kprintf("Calibration done.\n");
}
-FINSH_FUNCTION_EXPORT(accel_cal, auto-zero calibration.)
void list_accel(void)
{
@@ -845,7 +844,6 @@ void list_accel(void)
efm_accel_get_data(&data, false);
rt_kprintf("X: %d, Y: %d, Z: %d\n", data.x, data.y, data.z);
}
-FINSH_FUNCTION_EXPORT(list_accel, list accelerometer info.)
void test_accel(rt_uint8_t mode)
{
@@ -880,7 +878,6 @@ void test_accel(rt_uint8_t mode)
}
}
}
-FINSH_FUNCTION_EXPORT(test_accel, list accelerometer info.)
#endif
#endif
diff --git a/bsp/efm32/dev_led.c b/bsp/efm32/dev_led.c
index 2163c699b1..7c8805eda4 100644
--- a/bsp/efm32/dev_led.c
+++ b/bsp/efm32/dev_led.c
@@ -189,7 +189,6 @@ void list_leds(void)
#endif
}
}
-FINSH_FUNCTION_EXPORT(list_leds, list all the LEDs.)
void set_led(rt_uint32_t led, rt_uint32_t state)
{
@@ -206,7 +205,6 @@ void set_led(rt_uint32_t led, rt_uint32_t state)
break;
}
}
-FINSH_FUNCTION_EXPORT(set_led, turn led (0 - 3) on (1) or off (0).)
#endif
/***************************************************************************//**
diff --git a/bsp/efm32/dev_misc.c b/bsp/efm32/dev_misc.c
index 07c9ce8ac0..1beb90ce1e 100644
--- a/bsp/efm32/dev_misc.c
+++ b/bsp/efm32/dev_misc.c
@@ -180,7 +180,6 @@ void list_temp(void)
rt_kprintf("Temperature is %2d.%02d C\n", temp / 100, temp % 100);
}
-FINSH_FUNCTION_EXPORT(list_temp, list current temperature value.)
void list_vdd(void)
{
@@ -188,7 +187,6 @@ void list_vdd(void)
rt_kprintf("VDD is %1d.%02d V\n", vdd / 100, vdd % 100);
}
-FINSH_FUNCTION_EXPORT(list_vdd, list current VDD value.)
#endif /* RT_USING_FINSH */
diff --git a/bsp/efm32/dev_sflash.c b/bsp/efm32/dev_sflash.c
index fa94152886..bb1f71eae7 100644
--- a/bsp/efm32/dev_sflash.c
+++ b/bsp/efm32/dev_sflash.c
@@ -395,7 +395,6 @@ void list_sflash(void)
rt_kprintf(" Memory type:\t\t%x\n", buf[1]);
rt_kprintf(" Memory capacity:\t%x\n", buf[2]);
}
-FINSH_FUNCTION_EXPORT(list_sflash, list the SPI Flash.)
#endif
#endif /* defined(EFM32_USING_SFLASH) */
diff --git a/bsp/efm32/drv_emu.c b/bsp/efm32/drv_emu.c
index 79bd4c22ed..222fdb6c43 100644
--- a/bsp/efm32/drv_emu.c
+++ b/bsp/efm32/drv_emu.c
@@ -244,7 +244,6 @@ void list_emu(void)
rt_kprintf(" em4 token used %d\n",
EMU_TASK_EM4_TOKEN_NUMBER - emu_task.em4.value);
}
-FINSH_FUNCTION_EXPORT(list_emu, list the EMU status)
#endif
/***************************************************************************//**
diff --git a/bsp/efm32/drv_ethernet.c b/bsp/efm32/drv_ethernet.c
index 7792f20158..046f8b1386 100644
--- a/bsp/efm32/drv_ethernet.c
+++ b/bsp/efm32/drv_ethernet.c
@@ -1075,7 +1075,6 @@ void list_eth(void)
rt_kprintf(" TX is idle\n");
}
}
-FINSH_FUNCTION_EXPORT(list_eth, list the Ethernet device status.)
#include "lwip\api.h"
@@ -1184,7 +1183,6 @@ void list_myip(void)
rt_kprintf("Current IP: [%s]\n", ip);
}
-FINSH_FUNCTION_EXPORT(list_myip, list the current IP address.)
#if !defined(hostName) || !defined(userPwdB64)
#error "The 'hostName' and 'userPwdB64' must be defined to use update_ip() function"
@@ -1309,7 +1307,6 @@ void update_myip(char *ip)
rt_kprintf("succeeded.\n", ip);
}
-FINSH_FUNCTION_EXPORT(update_myip, update DDNS with specified IP address.)
#endif /* RT_USING_FINSH */
#endif /* defined(EFM32_USING_ETH_UTILS) */
diff --git a/bsp/efm32/drv_sdcard.c b/bsp/efm32/drv_sdcard.c
index 7cb55367e9..4eab0d2339 100644
--- a/bsp/efm32/drv_sdcard.c
+++ b/bsp/efm32/drv_sdcard.c
@@ -1317,7 +1317,6 @@ void list_sd(void)
capacity >>= 4;
rt_kprintf(" Card capacity:\t\t%dMB\n", capacity);
}
-FINSH_FUNCTION_EXPORT(list_sd, list the SD card.)
#endif
#endif /* defined(EFM32_USING_SPISD) */
diff --git a/bsp/frdm-k64f/board/drv_emac.c b/bsp/frdm-k64f/board/drv_emac.c
index 94ce23e418..0236fa72ed 100644
--- a/bsp/frdm-k64f/board/drv_emac.c
+++ b/bsp/frdm-k64f/board/drv_emac.c
@@ -419,7 +419,6 @@ long k64_dump_tx_bd(void)
return 0;
}
-FINSH_FUNCTION_EXPORT(k64_dump_tx_bd, dump all receive buffer descriptor);
MSH_CMD_EXPORT(k64_dump_tx_bd, dump all receive buffer descriptor);
long k64_dump_rx_bd(void)
@@ -441,7 +440,6 @@ long k64_dump_rx_bd(void)
return 0;
}
-FINSH_FUNCTION_EXPORT(k64_dump_rx_bd, dump all receive buffer descriptor);
MSH_CMD_EXPORT(k64_dump_rx_bd, dump all receive buffer descriptor);
#endif
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c b/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c
index 9e138d6f0b..ff0006f267 100644
--- a/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c
+++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c
@@ -159,5 +159,4 @@ void led(rt_uint32_t led, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&fm4_led.parent, led, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led, e.g:led(0,0)/led(0,1).)
#endif
diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c b/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c
index d26ab4f333..03d1188fc4 100644
--- a/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c
+++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c
@@ -162,5 +162,4 @@ void led(rt_uint32_t led, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&fm3_led.parent, led, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led, e.g:led(0,100).)
#endif
diff --git a/bsp/mini2440/drivers/dm9000.c b/bsp/mini2440/drivers/dm9000.c
index c3acda2c67..4e05eef23c 100644
--- a/bsp/mini2440/drivers/dm9000.c
+++ b/bsp/mini2440/drivers/dm9000.c
@@ -669,5 +669,4 @@ void dm9000a(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(dm9000a, dm9000a register dump);
#endif
diff --git a/bsp/mini4020/drivers/dm9161.c b/bsp/mini4020/drivers/dm9161.c
index 2e15c70ba5..66dc35f27f 100644
--- a/bsp/mini4020/drivers/dm9161.c
+++ b/bsp/mini4020/drivers/dm9161.c
@@ -700,5 +700,4 @@ void dm9161a(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(dm9161a, dm9161a register dump);
#endif
diff --git a/bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c b/bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c
index 5ab9fcf6f6..2b51879896 100644
--- a/bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c
+++ b/bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c
@@ -1313,12 +1313,5 @@ void enet_buf_info(void)
}
}
-FINSH_FUNCTION_EXPORT(phy_read, read phy register);
-FINSH_FUNCTION_EXPORT(phy_write, write phy register);
-FINSH_FUNCTION_EXPORT(phy_dump, dump phy registers);
-FINSH_FUNCTION_EXPORT(enet_reg_dump, dump enet registers);
-FINSH_FUNCTION_EXPORT(enet_nvic_tog, toggle enet nvic pendding bit);
-FINSH_FUNCTION_EXPORT(enet_rx_stat, dump enet rx statistic);
-FINSH_FUNCTION_EXPORT(enet_buf_info, dump enet tx and tx buffer descripter);
#endif
diff --git a/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c b/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c
index 229b3c3aef..5af50fd80a 100644
--- a/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c
+++ b/bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c
@@ -395,7 +395,6 @@ static void log_toggle(int en)
{
enable_log = en;
}
-FINSH_FUNCTION_EXPORT(log_toggle, toglle log dumple);
#endif
static const struct rt_mmcsd_host_ops ops =
diff --git a/bsp/nxp/lpc/lpc178x/applications/application.c b/bsp/nxp/lpc/lpc178x/applications/application.c
index 1ffbd3be39..58406e29ea 100644
--- a/bsp/nxp/lpc/lpc178x/applications/application.c
+++ b/bsp/nxp/lpc/lpc178x/applications/application.c
@@ -201,5 +201,4 @@ void key(rt_uint32_t key)
ekbd.type = RTGUI_KEYUP;
rtgui_server_post_event((struct rtgui_event*)&ekbd, sizeof(ekbd));
}
-FINSH_FUNCTION_EXPORT(key, send a key to gui server);
#endif
diff --git a/bsp/nxp/lpc/lpc178x/drivers/emac.c b/bsp/nxp/lpc/lpc178x/drivers/emac.c
index 7314964f04..52a4a70618 100644
--- a/bsp/nxp/lpc/lpc178x/drivers/emac.c
+++ b/bsp/nxp/lpc/lpc178x/drivers/emac.c
@@ -546,6 +546,5 @@ void emac_dump()
rt_kprintf("IntEnable: %08x\n", LPC_EMAC->IntEnable);
rt_kprintf("IntStatus: %08x\n", LPC_EMAC->IntStatus);
}
-FINSH_FUNCTION_EXPORT(emac_dump, dump emac register);
#endif
diff --git a/bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c b/bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c
index 2a84b02633..46830d0d5a 100644
--- a/bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c
+++ b/bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c
@@ -96,5 +96,4 @@ void lcd_fill(uint8_t * start, uint8_t * end, uint8_t pixel)
}
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(lcd_fill, lcd_fill );
#endif
diff --git a/bsp/nxp/lpc/lpc408x/drivers/drv_emac.c b/bsp/nxp/lpc/lpc408x/drivers/drv_emac.c
index a92aba8845..3d250a698b 100644
--- a/bsp/nxp/lpc/lpc408x/drivers/drv_emac.c
+++ b/bsp/nxp/lpc/lpc408x/drivers/drv_emac.c
@@ -503,6 +503,5 @@ void emac_dump()
rt_kprintf("IntEnable: %08x\n", LPC_EMAC->IntEnable);
rt_kprintf("IntStatus: %08x\n", LPC_EMAC->IntStatus);
}
-FINSH_FUNCTION_EXPORT(emac_dump, dump emac register);
#endif
diff --git a/bsp/nxp/lpc/lpc408x/drivers/drv_led.c b/bsp/nxp/lpc/lpc408x/drivers/drv_led.c
index 5c18ef67d1..2fc6e3e923 100644
--- a/bsp/nxp/lpc/lpc408x/drivers/drv_led.c
+++ b/bsp/nxp/lpc/lpc408x/drivers/drv_led.c
@@ -150,5 +150,4 @@ void led_test(rt_uint32_t led_num, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&led.parent, led_num, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led_test, e.g: led_test(0, 100).)
#endif
diff --git a/bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c b/bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c
index f88505fa88..7f2ffb182b 100644
--- a/bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c
+++ b/bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c
@@ -527,6 +527,5 @@ void emac_dump()
rt_kprintf("IntEnable: %08x\n", LPC_EMAC->IntEnable);
rt_kprintf("IntStatus: %08x\n", LPC_EMAC->IntStatus);
}
-FINSH_FUNCTION_EXPORT(emac_dump, dump emac register);
#endif
diff --git a/bsp/nxp/lpc/lpc43xx/drivers/drv_led.c b/bsp/nxp/lpc/lpc43xx/drivers/drv_led.c
index 02ce94d548..7568b19a09 100644
--- a/bsp/nxp/lpc/lpc43xx/drivers/drv_led.c
+++ b/bsp/nxp/lpc/lpc43xx/drivers/drv_led.c
@@ -165,5 +165,4 @@ void led_test(rt_uint32_t led_num, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&led.parent, led_num, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led_test, e.g: led_test(0, 100).)
#endif
diff --git a/bsp/nxp/lpc/lpc5410x/drivers/drv_led.c b/bsp/nxp/lpc/lpc5410x/drivers/drv_led.c
index fc6ca6abed..6115430e6f 100644
--- a/bsp/nxp/lpc/lpc5410x/drivers/drv_led.c
+++ b/bsp/nxp/lpc/lpc5410x/drivers/drv_led.c
@@ -201,5 +201,4 @@ void led_test(rt_uint32_t led_num, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&led.parent, led_num, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led_test, e.g: led_test(0, 100).)
#endif
diff --git a/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c b/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c
index f24f6683f7..bc6624410c 100644
--- a/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c
+++ b/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c
@@ -726,8 +726,4 @@ void emac_bd_dump(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(emac_stat, dump emac stat data);
-FINSH_FUNCTION_EXPORT(phy_dump, dump phy registers);
-FINSH_FUNCTION_EXPORT(emac_dump, dump emac registers);
-FINSH_FUNCTION_EXPORT(emac_bd_dump, dump emac tx and rx descriptor);
#endif
diff --git a/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_lcd.c b/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_lcd.c
index 260fb09f0e..bfe354cd24 100644
--- a/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_lcd.c
+++ b/bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_lcd.c
@@ -457,8 +457,6 @@ void lcd_test(void)
}
#ifdef RT_USING_FINSH
#include <finsh.h>
-FINSH_FUNCTION_EXPORT(lcd_clear, lcd_clear);
-FINSH_FUNCTION_EXPORT(lcd_test, lcd_test);
#ifdef FINSH_USING_MSH
MSH_CMD_EXPORT(lcd_clear, lcd_clear);
MSH_CMD_EXPORT(lcd_test, lcd_test);
diff --git a/bsp/simulator/drivers/nanddrv_file.c b/bsp/simulator/drivers/nanddrv_file.c
index c47ffdbbe4..e712bd90b5 100644
--- a/bsp/simulator/drivers/nanddrv_file.c
+++ b/bsp/simulator/drivers/nanddrv_file.c
@@ -402,6 +402,5 @@ void nand_eraseall()
nanddrv_file_erase_block(&_nanddrv_file_device, index);
}
}
-FINSH_FUNCTION_EXPORT(nand_eraseall, erase all of block in the nand flash);
#endif //RT_USING_FINSH
diff --git a/bsp/simulator/drivers/sd_sim.c b/bsp/simulator/drivers/sd_sim.c
index d28e93f761..8b72fa9848 100755
--- a/bsp/simulator/drivers/sd_sim.c
+++ b/bsp/simulator/drivers/sd_sim.c
@@ -219,5 +219,4 @@ int sd_erase(void)
rt_free(buffer);
return 0;
}
-FINSH_FUNCTION_EXPORT(sd_erase, erase all block in SPI flash);
#endif
diff --git a/bsp/simulator/drivers/sst25vfxx_mtd_sim.c b/bsp/simulator/drivers/sst25vfxx_mtd_sim.c
index 3b34217ac2..85693fc322 100644
--- a/bsp/simulator/drivers/sst25vfxx_mtd_sim.c
+++ b/bsp/simulator/drivers/sst25vfxx_mtd_sim.c
@@ -247,7 +247,6 @@ void nor_erase(void)
sst25vfxx_erase_block(mtd, index * mtd->block_size, BLOCK_SIZE);
}
}
-FINSH_FUNCTION_EXPORT(nor_erase, erase all block in SPI flash);
#endif
#endif
diff --git a/bsp/simulator/pcap/pcap_netif.c b/bsp/simulator/pcap/pcap_netif.c
index dff7cec583..df72a59bf6 100644
--- a/bsp/simulator/pcap/pcap_netif.c
+++ b/bsp/simulator/pcap/pcap_netif.c
@@ -310,4 +310,3 @@ void list_pcap(void)
return ;
}
-FINSH_FUNCTION_EXPORT(list_pcap, show host netif adapter);
diff --git a/bsp/tm4c129x/drivers/drv_eth.c b/bsp/tm4c129x/drivers/drv_eth.c
index 84523a7271..8ee23930b7 100644
--- a/bsp/tm4c129x/drivers/drv_eth.c
+++ b/bsp/tm4c129x/drivers/drv_eth.c
@@ -1494,14 +1494,12 @@ void PHY_Read(uint8_t addr)
uint16_t data = EMACPHYRead(EMAC0_BASE, PHY_PHYS_ADDR, addr);
rt_kprintf("R PHY_REG[0x%02X] = 0x%04X\n", addr, data);
}
-FINSH_FUNCTION_EXPORT(PHY_Read, (add));
void PHY_Write(uint8_t addr , uint16_t data)
{
EMACPHYWrite(EMAC0_BASE, PHY_PHYS_ADDR, addr, data);
rt_kprintf("W PHY_REG[0x%02X] = 0x%04X\n", addr, data);
}
-FINSH_FUNCTION_EXPORT(PHY_Write, (add, data));
void PHY_SetAdd(uint8_t addr0, uint8_t addr1, uint8_t addr2,
uint8_t addr3, uint8_t addr4, uint8_t addr5)
@@ -1514,6 +1512,5 @@ void PHY_SetAdd(uint8_t addr0, uint8_t addr1, uint8_t addr2,
MAP_FlashUserSave();
rt_kprintf("Save to EEPROM. please reboot.");
}
-FINSH_FUNCTION_EXPORT(PHY_SetAdd, (add0-add5));
#endif //RT_USING_FINSH
#endif
diff --git a/bsp/xplorer4330/drivers/drv_led.c b/bsp/xplorer4330/drivers/drv_led.c
index b97d32c6b3..39755726a1 100644
--- a/bsp/xplorer4330/drivers/drv_led.c
+++ b/bsp/xplorer4330/drivers/drv_led.c
@@ -158,5 +158,4 @@ void led_test(rt_uint32_t led_num, rt_uint32_t value)
rt_uint8_t led_value = value;
rt_led_write(&led.parent, led_num, &led_value, 1);
}
-FINSH_FUNCTION_EXPORT(led_test, e.g: led_test(0, 100).)
#endif
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
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
diff --git a/include/rtdef.h b/include/rtdef.h
index 735d672215..b9d2b74913 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -204,8 +204,6 @@ typedef int (*init_fn_t)(void);
#if !defined(RT_USING_FINSH)
/* define these to empty, even if not include finsh.h file */
-#define FINSH_FUNCTION_EXPORT(name, desc)
-
#define MSH_CMD_EXPORT(command, desc)
#define MSH_CMD_EXPORT_ALIAS(command, alias, desc)
#elif !defined(FINSH_USING_SYMTAB)
diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c
index 2dda7b0334..c2ab83f2fd 100644
--- a/libcpu/arm/s3c24x0/rtc.c
+++ b/libcpu/arm/s3c24x0/rtc.c
@@ -182,6 +182,5 @@ void list_date()
rt_kprintf("%d, %s\n", time, ctime(&time));
}
}
-FINSH_FUNCTION_EXPORT(list_date, list date);
#endif
#endif