comparison loadtools/ltdispatch.c @ 52:b015036286f3

fc-loadtool: fast-baud communication with loadagent implemented, works!
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 23 Jun 2013 04:34:22 +0000
parents 65111e6eee9e
children 10996c267de4
comparison
equal deleted inserted replaced
51:aa62352647f7 52:b015036286f3
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 #include <strings.h> 8 #include <strings.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 extern int cmd_baud();
11 extern int cmd_crc32(); 12 extern int cmd_crc32();
12 extern int cmd_dump2bin(); 13 extern int cmd_dump2bin();
13 extern int cmd_dump2srec(); 14 extern int cmd_dump2srec();
14 extern int cmd_exec(); 15 extern int cmd_exec();
15 extern int cmd_exit(); 16 extern int cmd_exit();
19 char *cmd; 20 char *cmd;
20 int minargs; 21 int minargs;
21 int maxargs; 22 int maxargs;
22 int (*func)(); 23 int (*func)();
23 } cmdtab[] = { 24 } cmdtab[] = {
25 {"baud", 0, 1, cmd_baud},
24 {"crc32", 2, 2, cmd_crc32}, 26 {"crc32", 2, 2, cmd_crc32},
25 {"dump", 2, 2, loadtool_cmd_passthru}, 27 {"dump", 2, 2, loadtool_cmd_passthru},
26 {"dump2bin", 3, 3, cmd_dump2bin}, 28 {"dump2bin", 3, 3, cmd_dump2bin},
27 {"dump2srec", 3, 3, cmd_dump2srec}, 29 {"dump2srec", 3, 3, cmd_dump2srec},
28 {"exec", 1, 1, cmd_exec}, 30 {"exec", 1, 1, cmd_exec},