Export some functions that might be useful
[uccvend-snackrom.git] / ROM2 / chime.c
1 #include "vend.h"
2 #include "chime.h"
3
4 u8 chime_count;
5
6 void chime() {
7         /* called from the RTI interrupt, sees if we need to turn the chime on or
8          * off (chime would be on for N RTI cycles)
9          */
10         if (chime_count) {
11                 chime_on();
12                 --chime_count;
13         } else
14                 chime_off();
15 }
16

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