summaryrefslogtreecommitdiff
path: root/avr/cmd_fat.c
diff options
context:
space:
mode:
authorLeo C2018-07-21 13:53:33 +0200
committerLeo C2018-07-21 13:53:33 +0200
commit7a1ed62033184b79388b541258a14bc579389bdb (patch)
tree31c12c8c86ff308ef5a944ac088946e993f3e899 /avr/cmd_fat.c
parentb9aef06edc26e3d7560a7ab2d83fe033349ef874 (diff)
downloadz180-stamp-7a1ed62033184b79388b541258a14bc579389bdb.zip
Recursive cmd_find(), new command table flag: CTBL_RPT
# Conflicts: # avr/cmd_fat.c
Diffstat (limited to 'avr/cmd_fat.c')
-rw-r--r--avr/cmd_fat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/avr/cmd_fat.c b/avr/cmd_fat.c
index 76304bc..b083456 100644
--- a/avr/cmd_fat.c
+++ b/avr/cmd_fat.c
@@ -165,7 +165,7 @@ FRESULT scan_files (
* fatstat path - Show logical drive status
*
*/
-command_ret_t do_stat(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const argv[])
+command_ret_t do_stat(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc, char * const argv[])
{
FATFS *fs;
DWORD nfreeclst;
@@ -177,7 +177,7 @@ command_ret_t do_stat(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * cons
path = (char *) malloc(BUFFER_SIZE);
if (path == NULL) {
- printf_P(PSTR("fatstat: Out of Memory!\n"));
+ printf_P(PSTR("fat stat: Out of Memory!\n"));
free(path);
return CMD_RET_FAILURE;
}
@@ -534,22 +534,22 @@ command_ret_t do_rw(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const
cmd_tbl_t cmd_tbl_fat[] = {
CMD_TBL_ITEM(
- stat, 2, CTBL_REPEAT, do_stat,
+ stat, 2, CTBL_RPT, do_stat,
"Show logical drive status",
"dev"
),
CMD_TBL_ITEM(
- pwd, 2, CTBL_REPEAT, do_pwd,
+ pwd, 2, CTBL_RPT, do_pwd,
"Print name of current/working directory",
""
),
CMD_TBL_ITEM(
- cd, 2, CTBL_REPEAT, do_cd,
+ cd, 2, 0, do_cd,
"Change the current/working directory.",
"path"
),
CMD_TBL_ITEM(
- ls, 2, CTBL_REPEAT, do_ls,
+ ls, 2, CTBL_RPT, do_ls,
"Directory listing",
"path"
),
@@ -565,7 +565,7 @@ CMD_TBL_ITEM(
" the load stops on end of file."
),
CMD_TBL_ITEM(
- write, 4, 0, do_rw,
+ write, 4, 0, do_rw,
"write file into a dos filesystem",
"<d:/path/filename> <addr> <bytes>\n"
" - Write file to 'path/filename' on logical drive 'd' from RAM\n"
@@ -573,7 +573,7 @@ CMD_TBL_ITEM(
),
CMD_TBL_ITEM(
- help, CONFIG_SYS_MAXARGS, CTBL_REPEAT, do_help,
+ help, CONFIG_SYS_MAXARGS, CTBL_RPT, do_help,
"Print sub command description/usage",
"\n"
" - print brief description of all sub commands\n"