Deprecating main.c & other functions in order to be a dumb terminal.
[uccvend-snackrom.git] / ROM2 / main_basic.c
1 /*
2  * main_basic.c - a simplified main procedure that relies upon a ersver to do
3  * anything smart. Just be a dumb interface to a display, keypad, coin mech
4  * and snacks.
5  */
6
7 #include "display_basic.h"
8 #include "keypad.h"
9 #include "chime.h"
10 #include "server.h"
11 #include "coinmech.h"
12 #include "vend.h"
13
14 void _start() {
15         set_bus_expanded();
16         display_init();
17         /* enable RTI & set rate */
18         /* init coin mech */
19         /* scan for motors */
20         main();
21 }
22
23 int main() {
24         while(1) {
25                 /* stuff */
26         }
27 }
28
29 void rti() {
30         chime(); /* turn chime on or off as need be */
31 }

UCC git Repository :: git.ucc.asn.au