git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Long beep on start up
[uccvend-snackrom.git]
/
ROM2
/
coinmech.c
diff --git
a/ROM2/coinmech.c
b/ROM2/coinmech.c
index
e24fe62
..
c52e146
100644
(file)
--- a/
ROM2/coinmech.c
+++ b/
ROM2/coinmech.c
@@
-130,3
+130,10
@@
void coin_cost(u16 cost) {
item_cost = cost;
while(coin_value); /* wait until coin mech cleared */
}
+
+void coinmech_init() {
+ _io_ports[M6811_SCCR1] = 0x10;
+ _io_ports[M6811_SCCR2] = 0x2e;
+ _io_ports[M6811_BAUD] = 0x03;
+ send_byte(0xff);
+}
UCC
git Repository :: git.ucc.asn.au