mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
Merge pull request #4970 from cndabai/master
Remove C Style Command Shell
This commit is contained in:
@@ -67,7 +67,6 @@ void list_dir(const char* path)
|
||||
#include <finsh.h>
|
||||
FINSH_FUNCTION_EXPORT(list_dir, list directory);
|
||||
|
||||
#ifdef FINSH_USING_MSH
|
||||
static void cmd_list_dir(int argc, char *argv[])
|
||||
{
|
||||
char* filename;
|
||||
@@ -84,5 +83,4 @@ static void cmd_list_dir(int argc, char *argv[])
|
||||
list_dir(filename);
|
||||
}
|
||||
MSH_CMD_EXPORT_ALIAS(cmd_list_dir, list_dir, list directory);
|
||||
#endif /* FINSH_USING_MSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
@@ -58,7 +58,6 @@ void readspeed(const char* filename, int block_size)
|
||||
#include <finsh.h>
|
||||
FINSH_FUNCTION_EXPORT(readspeed, perform file read test);
|
||||
|
||||
#ifdef FINSH_USING_MSH
|
||||
static void cmd_readspeed(int argc, char *argv[])
|
||||
{
|
||||
char* filename;
|
||||
@@ -83,5 +82,4 @@ static void cmd_readspeed(int argc, char *argv[])
|
||||
readspeed(filename, block_size);
|
||||
}
|
||||
FINSH_FUNCTION_EXPORT_ALIAS(cmd_readspeed, __cmd_readspeed, test file system read speed);
|
||||
#endif /* FINSH_USING_MSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
@@ -147,7 +147,6 @@ __exit:
|
||||
/* export to finsh */
|
||||
FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test);
|
||||
|
||||
#ifdef FINSH_USING_MSH
|
||||
static void cmd_readwrite(int argc, char *argv[])
|
||||
{
|
||||
char* filename;
|
||||
@@ -164,5 +163,4 @@ static void cmd_readwrite(int argc, char *argv[])
|
||||
readwrite(filename);
|
||||
}
|
||||
FINSH_FUNCTION_EXPORT_ALIAS(cmd_readwrite, __cmd_readwrite, perform file read and write test);
|
||||
#endif /* FINSH_USING_MSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
@@ -66,7 +66,6 @@ void writespeed(const char* filename, int total_length, int block_size)
|
||||
#include <finsh.h>
|
||||
FINSH_FUNCTION_EXPORT(writespeed, perform file write test);
|
||||
|
||||
#ifdef FINSH_USING_MSH
|
||||
static void cmd_writespeed(int argc, char *argv[])
|
||||
{
|
||||
char* filename;
|
||||
@@ -94,5 +93,4 @@ static void cmd_writespeed(int argc, char *argv[])
|
||||
writespeed(filename, length, block_size);
|
||||
}
|
||||
FINSH_FUNCTION_EXPORT_ALIAS(cmd_writespeed, __cmd_writespeed, test file system write speed);
|
||||
#endif /* FINSH_USING_MSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
@@ -25,7 +25,6 @@ static const char* _tc_current;
|
||||
static void (*_tc_cleanup)(void) = RT_NULL;
|
||||
|
||||
static rt_uint32_t _tc_scale = 1;
|
||||
FINSH_VAR_EXPORT(_tc_scale, finsh_type_int, the testcase timer timeout scale)
|
||||
|
||||
static rt_uint32_t _tc_loop;
|
||||
|
||||
|
||||
@@ -356,8 +356,8 @@ int termios_test(int argc, char **argv)
|
||||
|
||||
#ifdef RT_USING_FINSH
|
||||
#include <finsh.h>
|
||||
#ifdef FINSH_USING_MSH
|
||||
#ifdef RT_USING_FINSH
|
||||
MSH_CMD_EXPORT_ALIAS(termios_test, termtest, e.g: termtest /dev/uart4 115200);
|
||||
#endif /* FINSH_USING_MSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
#endif /* RT_USING_FINSH */
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ EXIT:
|
||||
|
||||
return err;
|
||||
}
|
||||
#ifdef FINSH_USING_MSH
|
||||
#ifdef RT_USING_FINSH
|
||||
MSH_CMD_EXPORT(hwtimer, "Test hardware timer");
|
||||
#endif
|
||||
#endif /* RT_USING_HWTIMER */
|
||||
|
||||
Reference in New Issue
Block a user