comparison loadtools/ltdispatch.c @ 58:1f9302b6f342

fc-loadtool: started flash/flash2 command implementation
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 24 Jun 2013 06:30:57 +0000
parents 10996c267de4
children a7da6648a7f8
comparison
equal deleted inserted replaced
57:10996c267de4 58:1f9302b6f342
12 extern int cmd_crc32(); 12 extern int cmd_crc32();
13 extern int cmd_dump2bin(); 13 extern int cmd_dump2bin();
14 extern int cmd_dump2srec(); 14 extern int cmd_dump2srec();
15 extern int cmd_exec(); 15 extern int cmd_exec();
16 extern int cmd_exit(); 16 extern int cmd_exit();
17 extern int cmd_flash();
17 extern int loadtool_cmd_passthru(); 18 extern int loadtool_cmd_passthru();
18 19
19 static struct cmdtab { 20 static struct cmdtab {
20 char *cmd; 21 char *cmd;
21 int minargs; 22 int minargs;
27 {"dump", 2, 2, loadtool_cmd_passthru}, 28 {"dump", 2, 2, loadtool_cmd_passthru},
28 {"dump2bin", 3, 3, cmd_dump2bin}, 29 {"dump2bin", 3, 3, cmd_dump2bin},
29 {"dump2srec", 3, 3, cmd_dump2srec}, 30 {"dump2srec", 3, 3, cmd_dump2srec},
30 {"exec", 1, 1, cmd_exec}, 31 {"exec", 1, 1, cmd_exec},
31 {"exit", 0, 1, cmd_exit}, 32 {"exit", 0, 1, cmd_exit},
33 {"flash", 1, 4, cmd_flash},
34 {"flash2", 1, 4, cmd_flash},
32 {"quit", 0, 1, cmd_exit}, 35 {"quit", 0, 1, cmd_exit},
33 {"r8", 1, 1, loadtool_cmd_passthru}, 36 {"r8", 1, 1, loadtool_cmd_passthru},
34 {"r16", 1, 1, loadtool_cmd_passthru}, 37 {"r16", 1, 1, loadtool_cmd_passthru},
35 {"r32", 1, 1, loadtool_cmd_passthru}, 38 {"r32", 1, 1, loadtool_cmd_passthru},
36 {"w8", 2, 2, loadtool_cmd_passthru}, 39 {"w8", 2, 2, loadtool_cmd_passthru},