X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/afc7c4b41af6cc2008bdc525f944e61f14cad93f..cb4fb1ed02b59f798368a76f2596d7c24125e68a:/avr/command_tbl.c diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 5dcbf1f..944c1c4 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -37,6 +37,7 @@ extern command_ret_t do_fat_ls(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_fat_rw(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); extern command_ret_t do_source(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); +extern command_ret_t do_attach(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); #ifdef CONFIG_SYS_LONGHELP const FLASH char sd_help_text[] = @@ -349,6 +350,22 @@ CMD_TBL_ITEM( " - Write file to 'path/filename' on logical drive 'd' from RAM\n" " starting at address 'addr'.\n" ), +CMD_TBL_ITEM( + attach, CONFIG_SYS_MAXARGS, 1, do_attach, + "attach filesystem image file to CP/M drive", + "[options] [dsk ]\n" + " - attach drive number to diskfile \n" + "attach -d dsk\n" + " - detach drive\n" + "attach\n" + " - without arguments, list current assignments" +), +CMD_TBL_ITEM( + detach, 2, 1, do_attach, + "detach file from CP/M drive", + "dsk]\n" + " - same as attach -d dsk" +), CMD_TBL_ITEM( help, CONFIG_SYS_MAXARGS, 1, do_help,