FreeCalypso > hg > freecalypso-sw
comparison loadtools/initscript.c @ 54:50b652bc3a4f
loadtools: made the baud command available in init-script for fc-xram
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 23 Jun 2013 05:47:17 +0000 |
parents | 16315ed6401a |
children | 10996c267de4 |
comparison
equal
deleted
inserted
replaced
53:604648026e9c | 54:50b652bc3a4f |
---|---|
8 #include <string.h> | 8 #include <string.h> |
9 #include <strings.h> | 9 #include <strings.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
11 | 11 |
12 extern char default_helpers_dir[]; | 12 extern char default_helpers_dir[]; |
13 | |
14 extern int cmd_baud(); | |
13 | 15 |
14 static | 16 static |
15 loadagent_cmd(argc, argv) | 17 loadagent_cmd(argc, argv) |
16 char **argv; | 18 char **argv; |
17 { | 19 { |
28 char *cmd; | 30 char *cmd; |
29 int minargs; | 31 int minargs; |
30 int maxargs; | 32 int maxargs; |
31 int (*func)(); | 33 int (*func)(); |
32 } cmdtab[] = { | 34 } cmdtab[] = { |
35 {"baud", 1, 1, cmd_baud}, | |
33 {"w8", 2, 2, loadagent_cmd}, | 36 {"w8", 2, 2, loadagent_cmd}, |
34 {"w16", 2, 2, loadagent_cmd}, | 37 {"w16", 2, 2, loadagent_cmd}, |
35 {"w32", 2, 2, loadagent_cmd}, | 38 {"w32", 2, 2, loadagent_cmd}, |
36 {0, 0, 0, 0} | 39 {0, 0, 0, 0} |
37 }; | 40 }; |