summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
authorLeo C2015-05-21 17:29:19 +0200
committerLeo C2015-05-21 17:29:19 +0200
commit393b1897603fddeb4f16170880ddd9414b3726e0 (patch)
tree94d886874adad696d745d7c276bd10d3f0b951c3 /avr/command_tbl.c
parent0c728c8de88d86247d2a75348e71f5af37838c28 (diff)
downloadz180-stamp-393b1897603fddeb4f16170880ddd9414b3726e0.zip
f_sync only, when timout (currently 1s) after last write operation.hexrel-6
Diffstat (limited to 'avr/command_tbl.c')
-rw-r--r--avr/command_tbl.c24
1 files changed, 24 insertions, 0 deletions
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'",