diff options
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r-- | avr/command_tbl.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 2c91355..5dcbf1f 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de> + * (C) Copyright 2014-2016 Leo C. <erbl259-lmu@yahoo.de> * * SPDX-License-Identifier: GPL-2.0 */ @@ -34,9 +34,9 @@ extern command_ret_t do_gpio(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_sd(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_fat_stat(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_fat_ls(cmd_tbl_t *, int, int, char * const []); -//extern command_ret_t do_fat_read(cmd_tbl_t *, int, int, char * const []); -//extern command_ret_t do_fat_write(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[]); #ifdef CONFIG_SYS_LONGHELP const FLASH char sd_help_text[] = @@ -115,6 +115,13 @@ CMD_TBL_ITEM_COMPLETE( var_complete ), CMD_TBL_ITEM_COMPLETE( + source, CONFIG_SYS_MAXARGS, 1, do_source, + "run commands from a file", + "filename\n" + " - run the commands in the script file 'filename'", + var_complete +), +CMD_TBL_ITEM_COMPLETE( printenv, CONFIG_SYS_MAXARGS, 1, do_env_print, "print environment variables", "\n" |