summaryrefslogtreecommitdiff
path: root/avr/command_tbl.c
diff options
context:
space:
mode:
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'",