Remove deprecated FINSH_FUNCTION_EXPORT macro and all usages

Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-26 07:04:31 +00:00
parent 42aef81d15
commit f2d0b8a626
87 changed files with 0 additions and 133 deletions

View File

@@ -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
/*@}*/

View File

@@ -202,6 +202,5 @@ void list_irq(void)
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(list_irq, list system irq);
#endif

View File

@@ -152,7 +152,6 @@ void nfs_start(void)
}
#include "finsh.h"
FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/

View File

@@ -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);

View File

@@ -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

View File

@@ -153,7 +153,6 @@ void nfs_start(void)
}
#include "finsh.h"
FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/

View File

@@ -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);

View File

@@ -98,7 +98,6 @@ void nfs_start(void)
}
#include "finsh.h"
FINSH_FUNCTION_EXPORT(nfs_start, start net filesystem);
#endif
/*@}*/

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -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
/***************************************************************************//**

View File

@@ -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 */

View File

@@ -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) */

View File

@@ -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
/***************************************************************************//**

View File

@@ -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) */

View File

@@ -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) */

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -669,5 +669,4 @@ void dm9000a(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
FINSH_FUNCTION_EXPORT(dm9000a, dm9000a register dump);
#endif

View File

@@ -700,5 +700,4 @@ void dm9161a(void)
#ifdef RT_USING_FINSH
#include <finsh.h>
FINSH_FUNCTION_EXPORT(dm9161a, dm9161a register dump);
#endif

View File

@@ -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

View File

@@ -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 =

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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);

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -310,4 +310,3 @@ void list_pcap(void)
return ;
}
FINSH_FUNCTION_EXPORT(list_pcap, show host netif adapter);

View File

@@ -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

View File

@@ -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

View File

@@ -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 */

View File

@@ -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
/**@}*/

View File

@@ -3027,6 +3027,5 @@ void copy(const char *src, const char *dst)
}
}
}
FINSH_FUNCTION_EXPORT(copy, copy file or dir)
#endif

View File

@@ -849,7 +849,6 @@ RTM_EXPORT(mkdir);
#ifdef RT_USING_FINSH
#include <finsh.h>
FINSH_FUNCTION_EXPORT(mkdir, create a directory);
#endif
/**

View File

@@ -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

View File

@@ -895,5 +895,4 @@ static void enc28j60(void)
enc28j60_unlock(&enc28j60_dev);
}
FINSH_FUNCTION_EXPORT(enc28j60, dump enc28j60 registers);
#endif

View File

@@ -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
*

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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.);

View File

@@ -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)
{

View File

@@ -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.);

View File

@@ -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

View File

@@ -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[])
{

View File

@@ -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[])
{

View File

@@ -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[])
{

View File

@@ -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 */

View File

@@ -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[])
{

View File

@@ -56,4 +56,3 @@ int libc_dirent()
closedir(dirp);
return result;
}
FINSH_FUNCTION_EXPORT(libc_dirent, dirent test for libc);

View File

@@ -19,4 +19,3 @@ int libc_env()
printf("foo=%s\n", getenv("foo"));
return 0;
}
FINSH_FUNCTION_EXPORT(libc_env, get/set_env test);

View File

@@ -42,4 +42,3 @@ int libc_ex1(void)
return ret;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex1, example 1 for libc);

View File

@@ -119,4 +119,3 @@ int libc_ex2(void)
return 0;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex2, example 2 for libc);

View File

@@ -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 */

View File

@@ -113,4 +113,3 @@ int libc_ex4()
pthread_join(th2, NULL);
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex4, example 4 for libc);

View File

@@ -109,5 +109,4 @@ int libc_ex5(void)
return 0;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex5, example 5 for libc);

View File

@@ -42,4 +42,3 @@ int libc_ex6(void) {
return 0;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex6, example 6 for libc);

View File

@@ -106,4 +106,3 @@ int libc_ex7(void) {
return 0;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_ex7, example 7 for libc);

View File

@@ -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);

View File

@@ -57,4 +57,3 @@ int libc_mem(void)
return errors != 0;
}
FINSH_FUNCTION_EXPORT(libc_mem, memory test for libc);

View File

@@ -126,4 +126,3 @@ int libc_mq()
return 0;
}
#include <finsh.h>
FINSH_FUNCTION_EXPORT(libc_mq, posix mqueue test);

View File

@@ -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);

View File

@@ -44,4 +44,3 @@ int libc_rand(void)
return 1;
}
}
FINSH_FUNCTION_EXPORT(libc_rand, rand test for libc);

View File

@@ -71,4 +71,3 @@ void libc_sem()
rt_thread_startup(tid);
}
}
FINSH_FUNCTION_EXPORT(libc_sem, posix semaphore test);

View File

@@ -24,4 +24,3 @@ int speed()
printf("%d\n", time(0));
return 0;
}
FINSH_FUNCTION_EXPORT(speed, speed test);

View File

@@ -240,5 +240,4 @@ void chargen()
{
chargen_init();
}
FINSH_FUNCTION_EXPORT(chargen, start chargen server);
#endif

View File

@@ -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

View File

@@ -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

View File

@@ -346,4 +346,3 @@ register int l;
#endif
#include <finsh.h>
FINSH_FUNCTION_EXPORT(dhry_test, dhry test);

View File

@@ -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

View File

@@ -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

View File

@@ -342,4 +342,3 @@ void net_test(void)
rt_thread_startup(tcpecho_socket_tid);
}
}
FINSH_FUNCTION_EXPORT(net_test, network test);

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -122,5 +122,4 @@ rt_err_t ry(char *dname)
return res;
}
FINSH_FUNCTION_EXPORT(ry, receive files by ymodem protocol);
#endif

View File

@@ -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)

View File

@@ -182,6 +182,5 @@ void list_date()
rt_kprintf("%d, %s\n", time, ctime(&time));
}
}
FINSH_FUNCTION_EXPORT(list_date, list date);
#endif
#endif