"addr1 addr2 count"
),
CMD_TBL_ITEM(
- base, 2, 1, do_mem_base,
+ base, 2, 0, do_mem_base,
"print or set address offset",
"\n"
" - print address offset for memory commands\n"
),
#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,
" - 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'"),