Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
@@ -123,7 +123,6 @@ INIT_DEVICE_EXPORT(rt_hw_led_init);
#endif
#ifdef RT_USING_FINSH
-#include <finsh.h>
void led(rt_uint32_t led, rt_uint32_t state)
{
@@ -201,6 +201,5 @@ void list_irq(void)
}
@@ -151,7 +151,6 @@ void nfs_start(void)
rt_kprintf("NFSv3 File System initialzation failed!\n");
-#include "finsh.h"
/*@}*/
@@ -891,7 +891,6 @@ err:
INIT_DEVICE_EXPORT(at91_mci_init);
void mci_dump(void)
@@ -611,7 +611,6 @@ int rt_hw_mtd_nand_init(void)
INIT_DEVICE_EXPORT(rt_hw_mtd_nand_init);
#if defined(RT_USING_FINSH)
void nand_eraseall()
int tmp=0;
@@ -152,7 +152,6 @@ void nfs_start(void)
@@ -97,7 +97,6 @@ void nfs_start(void)
@@ -824,7 +824,6 @@ rt_err_t efm_accel_init(void)
* Export to FINSH
******************************************************************************/
void accel_cal(rt_uint8_t mode, rt_uint32_t second)
@@ -166,7 +166,6 @@ rt_err_t rt_hw_led_init(void)
void list_leds(void)
@@ -172,7 +172,6 @@ rt_int32_t efm32_misc_getCelsius(rt_uint32_t adcResult)
void list_temp(void)
@@ -381,7 +381,6 @@ rt_uint32_t efm_spiFlash_cmd(
*********************************************************************/
void list_sflash(void)
@@ -232,7 +232,6 @@ void efm32_emu_init(void)
void list_emu(void)
@@ -1016,7 +1016,6 @@ rt_err_t efm_hw_eth_init(void)
#if defined(EFM32_USING_ETH_UTILS)
void list_eth(void)
@@ -1271,7 +1271,6 @@ void efm_spiSd_deinit(void)
void list_sd(void)
@@ -153,7 +153,6 @@ void rt_led_hw_init(void)
void led(rt_uint32_t led, rt_uint32_t value)
rt_uint8_t led_value = value;
@@ -156,7 +156,6 @@ void rt_led_hw_init(void)
@@ -668,5 +668,4 @@ void dm9000a(void)
@@ -699,5 +699,4 @@ void dm9161a(void)
@@ -16,7 +16,6 @@
#include <rtdevice.h>
#include "fsl_enet.h"
@@ -1094,7 +1093,6 @@ INIT_DEVICE_EXPORT(rt_hw_imxrt_eth_init);
#if defined(RT_USING_FINSH) && defined(RT_USING_PHY)
void phy_read(rt_uint32_t phy_reg)
@@ -17,7 +17,6 @@
#include <fsl_gpio.h>
#include <fsl_iomuxc.h>
#define RT_USING_SDIO1
#define RT_USING_SDIO2
@@ -536,7 +536,6 @@ void lpc17xx_emac_hw_init(void)
void emac_dump()
rt_kprintf("Command : %08x\n", LPC_EMAC->Command);
@@ -95,5 +95,4 @@ void lcd_fill(uint8_t * start, uint8_t * end, uint8_t pixel)
@@ -493,7 +493,6 @@ int rt_hw_emac_init(void)
INIT_DEVICE_EXPORT(rt_hw_emac_init);
@@ -144,7 +144,6 @@ int rt_hw_led_init(void)
INIT_DEVICE_EXPORT(rt_hw_led_init);
void led_test(rt_uint32_t led_num, rt_uint32_t value)
@@ -517,7 +517,6 @@ int lpc_emac_hw_init(void)
INIT_DEVICE_EXPORT(lpc_emac_hw_init);
@@ -159,7 +159,6 @@ int rt_led_hw_init(void)
INIT_DEVICE_EXPORT(rt_led_hw_init);
@@ -195,7 +195,6 @@ void Led_Control(rt_uint32_t Set_led, rt_uint32_t value)
@@ -725,5 +725,4 @@ void emac_bd_dump(void)
@@ -393,7 +393,6 @@ void rt_hw_mtd_nand_init(void)
int index;
@@ -197,7 +197,6 @@ rt_err_t rt_hw_sdcard_init(const char *spi_device_name)
int sd_erase(void)
rt_uint32_t index;
@@ -235,7 +235,6 @@ rt_err_t sst25vfxx_mtd_init(const char *nor_name,
void nor_erase(void)
@@ -276,7 +276,6 @@ void pcap_netif_hw_init(void)
eth_device_init(&(pcap_netif_device.parent), "e0");
void list_pcap(void)
int i=0;
@@ -1488,7 +1488,6 @@ INIT_COMPONENT_EXPORT(rt_hw_tiva_eth_init);
#if 0
void PHY_Read(uint8_t addr)
uint16_t data = EMACPHYRead(EMAC0_BASE, PHY_PHYS_ADDR, addr);
@@ -152,7 +152,6 @@ int rt_led_hw_init(void)
@@ -780,7 +780,6 @@ int dfs_file_mmap2(struct dfs_file *fd, struct dfs_mmap2_args *mmap2)
void ls(const char *pathname)
@@ -613,7 +613,6 @@ err1:
void mkfs(const char *fs_name, const char *device_name)
dfs_mkfs(fs_name, device_name);
@@ -848,7 +848,6 @@ int mkdir(const char *path, mode_t mode)
RTM_EXPORT(mkdir);
/**
@@ -815,7 +815,6 @@ int32_t rw009_rssi(void)
static rt_err_t rw009_scan(void)
@@ -842,7 +842,6 @@ rt_err_t enc28j60_attach(const char *spi_device_name)
/*
* Debug routine to dump useful register contents
*/
@@ -9,7 +9,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
int libc_dirent()
@@ -10,7 +10,6 @@
int libc_env()
@@ -41,4 +41,3 @@ int libc_ex1(void)
printf("join b %s %d\n", sucfail(pret), pret);
return ret;
@@ -118,4 +118,3 @@ int libc_ex2(void)
pthread_join(th_b, &retval);
return 0;
@@ -54,7 +54,6 @@ int libc_ex3()
/* Exit the program */
/* This is the cleanup function that is called
when the threads are cancelled */
@@ -112,4 +112,3 @@ int libc_ex4()
pthread_join(th1, NULL);
pthread_join(th2, NULL);
@@ -108,5 +108,4 @@ int libc_ex5(void)
@@ -41,4 +41,3 @@ int libc_ex6(void) {
@@ -105,4 +105,3 @@ int libc_ex7(void) {
#include <sys/errno.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
static int errors = 0;
@@ -125,4 +125,3 @@ int libc_mq()
printf("PASSED\n");
@@ -12,7 +12,6 @@
char * format[] = {
"%",
int libc_rand(void)
@@ -59,7 +59,6 @@ static void test_thread(void* parameter)
pthread_exit(0);
void libc_sem()
rt_thread_t tid;
int speed()
@@ -235,7 +235,6 @@ void chargen_init(void)
if (chargen != RT_NULL) rt_thread_startup(chargen);
void chargen()
chargen_init();
@@ -82,7 +82,6 @@ void tcp_senddata(const char *url, int port, int length)
/* 输出tcpclient函数到finsh shell中 */
@@ -510,6 +510,5 @@ int device_test(const char * device_name)
@@ -345,4 +345,3 @@ register int l;
@@ -292,5 +292,4 @@ void fs_test(rt_uint32_t arg)
@@ -109,5 +109,4 @@ void mem_test(uint32_t address, uint32_t size )
@@ -11,7 +11,6 @@
* Net Test Utilities for RT-Thread
#include <rtthread.h>
#include <lwip/api.h>
#include <lwip/sockets.h>
#include <lwip/init.h>
@@ -42,7 +42,6 @@ rt_err_t rym_cat_to_dev(rt_device_t idev, rt_device_t odev)
void rym_cat_vcom(void)
extern rt_err_t rym_cat_to_dev(rt_device_t idev, rt_device_t odev);
@@ -18,7 +18,6 @@ static enum rym_code _rym_dummy_write(
rt_err_t rym_null(char *devname)
struct rym_ctx rctx;
@@ -106,7 +106,6 @@ rt_err_t rym_write_to_file(rt_device_t idev)
rt_err_t ry(char *dname)
rt_err_t res;
@@ -168,7 +168,6 @@ void rt_hw_rtc_init(void)
void list_date()
time_t time;