| 152 | FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test); |
| 153 | |
| 154 | static void cmd_readwrite(int argc, char *argv[]) |
| 155 | { |
| 156 | char* filename; |
| 157 | |
| 158 | if(argc == 2) |
| 159 | { |
| 160 | filename = argv[1]; |
| 161 | } |
| 162 | else |
| 163 | { |
| 164 | rt_kprintf("Usage: readwrite [file_path]\n"); |
| 165 | return; |
| 166 | } |
| 167 | readwrite(filename); |
| 168 | } |
| 169 | MSH_CMD_EXPORT_ALIAS(cmd_readwrite, readwrite, perform file read and write test); |
| 170 | #endif /* RT_USING_FINSH */ |
nothing calls this directly
no test coverage detected