FreeCalypso > hg > freecalypso-sw
diff rvinterf/asyncshell/oneshot.c @ 1012:93f4fc26b204
fc-shell: arbitrary send command implemented in one-shot mode
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 20 Mar 2016 22:06:11 +0000 |
parents | bd873572ef2c |
children | 0511507bf6e7 |
line wrap: on
line diff
--- a/rvinterf/asyncshell/oneshot.c Sun Mar 20 21:10:21 2016 +0000 +++ b/rvinterf/asyncshell/oneshot.c Sun Mar 20 22:06:11 2016 +0000 @@ -6,8 +6,10 @@ #include <string.h> #include <strings.h> #include <stdlib.h> +#include "limits.h" extern int cmd_poweroff(); +extern int cmd_send_oneshot(); extern int cmd_sp_oneshot(); extern int cmd_tgtreset(); @@ -18,6 +20,7 @@ int (*func)(); } cmdtab[] = { {"poweroff", 0, 0, cmd_poweroff}, + {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, {"sp", 2, 2, cmd_sp_oneshot}, {"tgtreset", 0, 0, cmd_tgtreset}, {0, 0, 0, 0}