comparison lcdtest/dispatch.c @ 14:5a602e512b12

lcdtest: read ops split into command issuance and FTDI read
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 07 Apr 2018 01:19:14 +0000
parents 238a77db4134
children 1e94c7d4af03
comparison
equal deleted inserted replaced
13:238a77db4134 14:5a602e512b12
2 #include <stdio.h> 2 #include <stdio.h>
3 #include <string.h> 3 #include <string.h>
4 #include <strings.h> 4 #include <strings.h>
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 extern int cmd_fr();
7 extern int cmd_rd(); 8 extern int cmd_rd();
8 extern int cmd_ri(); 9 extern int cmd_ri();
9 extern int cmd_wd(); 10 extern int cmd_wd();
10 extern int cmd_wi(); 11 extern int cmd_wi();
11 extern int cmd_wr(); 12 extern int cmd_wr();
22 int minargs; 23 int minargs;
23 int maxargs; 24 int maxargs;
24 int (*func)(); 25 int (*func)();
25 } cmdtab[] = { 26 } cmdtab[] = {
26 {"exit", 0, 0, cmd_exit}, 27 {"exit", 0, 0, cmd_exit},
28 {"fr", 1, 1, cmd_fr},
27 {"quit", 0, 0, cmd_exit}, 29 {"quit", 0, 0, cmd_exit},
28 {"rd", 0, 0, cmd_rd}, 30 {"rd", 0, 0, cmd_rd},
29 {"reset", 0, 0, reset_pulse}, 31 {"reset", 0, 0, reset_pulse},
30 {"ri", 0, 0, cmd_ri}, 32 {"ri", 0, 0, cmd_ri},
31 {"wd", 1, 1, cmd_wd}, 33 {"wd", 1, 1, cmd_wd},