FreeCalypso > hg > freecalypso-hwlab
annotate lunalcd/initmain.c @ 94:b84df973cd8b
fc-simtool: parse_ef_select_response() function added
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 24 Jan 2021 20:35:23 +0000 |
| parents | cdf2c99e5025 |
| children |
| rev | line source |
|---|---|
|
65
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #include <stdio.h> |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 #include <stdlib.h> |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 main(argc, argv) |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 char **argv; |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 { |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 if (argc != 2) { |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 fprintf(stderr, "usage: %s output-mode\n", argv[0]); |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 exit(1); |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 } |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 set_output_mode(argv[1]); |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 lcd_init_seq(); |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 exit(0); |
|
cdf2c99e5025
lunalcd project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 } |
