summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
authorLeo C2014-11-22 13:07:04 +0100
committerLeo C2014-11-22 13:07:04 +0100
commit7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5 (patch)
tree1bb9ac83ce7fb1f6a99c6dd3445b2758330dcc95 /avr/command_tbl.c
parent05994bd90cb36f10ff72c6a70d7cecc61b67fb2f (diff)
downloadz180-stamp-7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5.zip
Integrate fatfs. Add some sd card test commands.
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r--avr/command_tbl.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c
index 97110fd..6b53fad 100644
--- a/avr/command_tbl.c
+++ b/avr/command_tbl.c
@@ -231,6 +231,13 @@ CMD_TBL_ITEM(
),
#endif /* CONFIG_MX_CYCLIC */
+CMD_TBL_ITEM(
+ sd, CONFIG_SYS_MAXARGS, 1, do_sd,
+ "SD/MMC card handling commands",
+ "<subcommand> args ...\n"
+ "sd help\n"
+ " - print help on subcommands"
+),
CMD_TBL_ITEM(
help, CONFIG_SYS_MAXARGS, 1, do_help,
@@ -241,17 +248,6 @@ CMD_TBL_ITEM(
" - print detailed usage of 'command'"
),
-/* TODO: make macro CMD_TBL_ITEM work with this */
- {FSTR("sd"), CONFIG_SYS_MAXARGS, 1, do_sd,
- FSTR("SD/MMC card handling commands"),
-#ifdef CONFIG_SYS_LONGHELP
- sd_help_text,
-#endif /* CONFIG_SYS_LONGHELP */
-#ifdef CONFIG_AUTO_COMPLETE
- 0,
-#endif
-},
-
/* This does not use the CMD_TBL_ITEM macro as ? can't be used in symbol names */
{FSTR("?"), CONFIG_SYS_MAXARGS, 1, do_help,
FSTR("alias for 'help'"),