extern command_ret_t do_attach(cmd_tbl_t *, uint_fast8_t, int, char * const []);
extern command_ret_t do_pr_free_avr(cmd_tbl_t *, uint_fast8_t, int, char * const []);
-#ifdef CONFIG_SYS_LONGHELP
-const FLASH char sd_help_text[] =
- "bla \t- do bla\n"
- ;
-#endif /* CONFIG_SYS_LONGHELP */
-
+extern cmd_tbl_t cmd_tbl_fat[];
+extern cmd_tbl_t cmd_tbl_sd[];
cmd_tbl_t cmd_tbl[] = {
),
#endif /* CONFIG_MX_CYCLIC */
-CMD_TBL_ITEM(
+CMD_TBL_ITEM_TOP(
sd, CONFIG_SYS_MAXARGS, 1, do_sd,
"SD/MMC card handling commands",
"<subcommand> args ...\n"
"sd help\n"
- " - print help on subcommands"
+ " - print help on subcommands",
+ cmd_tbl_sd
),
-CMD_TBL_ITEM(
+CMD_TBL_ITEM_TOP(
fat, CONFIG_SYS_MAXARGS, 1, do_fat,
"fat filesystem commands",
"<subcommand> args ...\n"
"fat help\n"
- " - print help on subcommands"
+ " - print help on subcommands",
+ cmd_tbl_fat
),
CMD_TBL_ITEM(
" -a Detach all.\n"
"\n"
"attach\n"
- " Without arguments, list current assignments\n"
+ " Without arguments, list current assignments"
),
CMD_TBL_ITEM(
detach, 2, CTBL_REPEAT, do_attach,
#ifdef CONFIG_SYS_LONGHELP
FSTR(""),
#endif /* CONFIG_SYS_LONGHELP */
+ NULL,
#ifdef CONFIG_AUTO_COMPLETE
- 0,
+ NULL,
#endif
},
/* Mark end of table */