From 393b1897603fddeb4f16170880ddd9414b3726e0 Mon Sep 17 00:00:00 2001 From: Leo C Date: Thu, 21 May 2015 17:29:19 +0200 Subject: f_sync only, when timout (currently 1s) after last write operation. --- avr/command_tbl.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'avr/command_tbl.c') diff --git a/avr/command_tbl.c b/avr/command_tbl.c index 3273093..eb0d84f 100644 --- a/avr/command_tbl.c +++ b/avr/command_tbl.c @@ -18,6 +18,9 @@ extern command_ret_t do_env_save(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadf(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadcpm3(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_loadihex(cmd_tbl_t *, int, int, char * const []); +#if defined(CONFIG_CMD_LOADB) +extern command_ret_t do_load_serial_bin(cmd_tbl_t *, int, int, char * const []); +#endif extern command_ret_t do_go(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_restart(cmd_tbl_t *, int, int, char * const []); extern command_ret_t do_console(cmd_tbl_t *, int, int, char * const []); @@ -147,6 +150,27 @@ CMD_TBL_ITEM( "[[-]offset]\n" " - load Intel-Hex-Record file over serial line with offset 'offset'" ), + +#if defined(CONFIG_CMD_LOADB) +CMD_TBL_ITEM( + loadb, 1, 0, do_load_serial_bin, + "load binary file over serial line (kermit mode)", + " - load binary file over serial line" +), + +CMD_TBL_ITEM( + loadx, 1, 0, do_load_serial_bin, + "load binary file over serial line (xmodem mode)", + " - load binary file over serial line" +), + +CMD_TBL_ITEM( + loady, 1, 0, do_load_serial_bin, + "load binary file over serial line (ymodem mode)", + " - load binary file over serial line" +), +#endif /* CONFIG_CMD_LOADB */ + CMD_TBL_ITEM( go, 2, 0, do_go, "start application at address 'addr'", -- cgit v1.2.3