FreeCalypso > hg > freecalypso-hwlab
comparison lcdtest/dispatch.c @ 24:94521a02c33d
lcdtest: the truth about Startek and Crystalfontz LCDs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 14 Apr 2018 06:43:23 +0000 |
parents | 2e4f27ea7067 |
children | 0a44549a64c8 |
comparison
equal
deleted
inserted
replaced
23:2127e6fdeab2 | 24:94521a02c33d |
---|---|
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 extern int cmd_cd(); | 7 extern int cmd_cd(); |
8 extern int cmd_fc(); | 8 extern int cmd_fc(); |
9 extern int cmd_fr(); | 9 extern int cmd_fr(); |
10 extern int cmd_init_st(); | |
11 extern int cmd_rd(); | 10 extern int cmd_rd(); |
12 extern int cmd_ri(); | 11 extern int cmd_ri(); |
13 extern int cmd_show(); | 12 extern int cmd_show(); |
14 extern int cmd_wd(); | 13 extern int cmd_wd(); |
15 extern int cmd_wi(); | 14 extern int cmd_wi(); |
16 extern int cmd_wr(); | 15 extern int cmd_wr(); |
17 | 16 |
18 extern int reset_pulse(); | 17 extern int reset_pulse(); |
18 extern int init_startek(); | |
19 | 19 |
20 cmd_exit() | 20 cmd_exit() |
21 { | 21 { |
22 exit(0); | 22 exit(0); |
23 } | 23 } |
30 } cmdtab[] = { | 30 } cmdtab[] = { |
31 {"cd", 1, 1, cmd_cd}, | 31 {"cd", 1, 1, cmd_cd}, |
32 {"exit", 0, 0, cmd_exit}, | 32 {"exit", 0, 0, cmd_exit}, |
33 {"fc", 1, 16, cmd_fc}, | 33 {"fc", 1, 16, cmd_fc}, |
34 {"fr", 1, 1, cmd_fr}, | 34 {"fr", 1, 1, cmd_fr}, |
35 {"init-st", 0, 0, cmd_init_st}, | 35 {"init-st", 0, 0, init_startek}, |
36 {"quit", 0, 0, cmd_exit}, | 36 {"quit", 0, 0, cmd_exit}, |
37 {"rd", 0, 0, cmd_rd}, | 37 {"rd", 0, 0, cmd_rd}, |
38 {"reset", 0, 0, reset_pulse}, | 38 {"reset", 0, 0, reset_pulse}, |
39 {"ri", 0, 0, cmd_ri}, | 39 {"ri", 0, 0, cmd_ri}, |
40 {"show", 1, 1, cmd_show}, | 40 {"show", 1, 1, cmd_show}, |