comparison lcdtest/dispatch.c @ 13:238a77db4134

lcdtest: read operations implemented, but don't work
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 06 Apr 2018 06:43:02 +0000
parents 5eaf832d57d0
children 5a602e512b12
comparison
equal deleted inserted replaced
12:5eaf832d57d0 13:238a77db4134
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_rd();
8 extern int cmd_ri();
7 extern int cmd_wd(); 9 extern int cmd_wd();
8 extern int cmd_wi(); 10 extern int cmd_wi();
9 extern int cmd_wr(); 11 extern int cmd_wr();
10 12
11 extern int reset_pulse(); 13 extern int reset_pulse();
21 int maxargs; 23 int maxargs;
22 int (*func)(); 24 int (*func)();
23 } cmdtab[] = { 25 } cmdtab[] = {
24 {"exit", 0, 0, cmd_exit}, 26 {"exit", 0, 0, cmd_exit},
25 {"quit", 0, 0, cmd_exit}, 27 {"quit", 0, 0, cmd_exit},
28 {"rd", 0, 0, cmd_rd},
26 {"reset", 0, 0, reset_pulse}, 29 {"reset", 0, 0, reset_pulse},
30 {"ri", 0, 0, cmd_ri},
27 {"wd", 1, 1, cmd_wd}, 31 {"wd", 1, 1, cmd_wd},
28 {"wi", 1, 1, cmd_wi}, 32 {"wi", 1, 1, cmd_wi},
29 {"wr", 2, 2, cmd_wr}, 33 {"wr", 2, 2, cmd_wr},
30 {0, 0, 0, 0} 34 {0, 0, 0, 0}
31 }; 35 };