FreeCalypso > hg > freecalypso-tools
annotate target-utils/lunadrv/cmdtab.c @ 849:a66095c7f35f
lunadrv: add suspend and resume commands
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 18 Aug 2021 04:00:14 +0000 |
parents | 21e0e6492cda |
children | 57f7db8c4f45 |
rev | line source |
---|---|
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #include "cmdtab.h" |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 extern void cmd_abbr(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 extern void cmd_abbw(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 extern void cmd_baud_switch(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 extern void cmd_dbl(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 extern void cmd_fill(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 extern void cmd_jump(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 extern void cmd_mem2lcd(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 extern void cmd_r8(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 extern void cmd_r16(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 extern void cmd_r32(); |
702
36e6a1ff9608
lunadrv: rd and wr commands added
Mychaela Falconia <falcon@freecalypso.org>
parents:
700
diff
changeset
|
13 extern void cmd_rd(); |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 extern void cmd_rect(); |
849
a66095c7f35f
lunadrv: add suspend and resume commands
Mychaela Falconia <falcon@freecalypso.org>
parents:
832
diff
changeset
|
15 extern void cmd_resume(); |
a66095c7f35f
lunadrv: add suspend and resume commands
Mychaela Falconia <falcon@freecalypso.org>
parents:
832
diff
changeset
|
16 extern void cmd_suspend(); |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 extern void cmd_w8(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 extern void cmd_w16(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 extern void cmd_w32(); |
702
36e6a1ff9608
lunadrv: rd and wr commands added
Mychaela Falconia <falcon@freecalypso.org>
parents:
700
diff
changeset
|
20 extern void cmd_wr(); |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 extern void abb_init(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 extern void abb_power_off(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 extern void abb_unlock_page2(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 extern void cmd_memdump_human(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
832
21e0e6492cda
lunadrv: add init-kwh for KWH020ST23-F01 LCD
Mychaela Falconia <falcon@freecalypso.org>
parents:
702
diff
changeset
|
27 extern void init_formike(); |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 extern void init_haoran(); |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 const struct cmdtab cmdtab[] = { |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 {"abbinit", abb_init}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 {"abbpage2", abb_unlock_page2}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 {"abbr", cmd_abbr}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 {"abbw", cmd_abbw}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 {"baud", cmd_baud_switch}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 {"dbl", cmd_dbl}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 {"dump", cmd_memdump_human}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 {"fill", cmd_fill}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 {"init-ht", init_haoran}, |
832
21e0e6492cda
lunadrv: add init-kwh for KWH020ST23-F01 LCD
Mychaela Falconia <falcon@freecalypso.org>
parents:
702
diff
changeset
|
40 {"init-kwh", init_formike}, |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 {"jump", cmd_jump}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 {"mem2lcd", cmd_mem2lcd}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 {"poweroff", abb_power_off}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 {"r8", cmd_r8}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 {"r16", cmd_r16}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 {"r32", cmd_r32}, |
702
36e6a1ff9608
lunadrv: rd and wr commands added
Mychaela Falconia <falcon@freecalypso.org>
parents:
700
diff
changeset
|
47 {"rd", cmd_rd}, |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 {"rect", cmd_rect}, |
849
a66095c7f35f
lunadrv: add suspend and resume commands
Mychaela Falconia <falcon@freecalypso.org>
parents:
832
diff
changeset
|
49 {"resume", cmd_resume}, |
a66095c7f35f
lunadrv: add suspend and resume commands
Mychaela Falconia <falcon@freecalypso.org>
parents:
832
diff
changeset
|
50 {"suspend", cmd_suspend}, |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 {"w8", cmd_w8}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 {"w16", cmd_w16}, |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 {"w32", cmd_w32}, |
702
36e6a1ff9608
lunadrv: rd and wr commands added
Mychaela Falconia <falcon@freecalypso.org>
parents:
700
diff
changeset
|
54 {"wr", cmd_wr}, |
700
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 {0, 0} |
db9a8e88e63f
target-utils lunadrv program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 }; |