]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/command_tbl.c
Integrate fatfs. Add some sd card test commands.
[z180-stamp.git] / avr / command_tbl.c
index 97110fd4f4649f6f651734a4524cb8cae026114b..6b53fad26353361d08d787d0ae13e780fca2c903 100644 (file)
@@ -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'"),