git.ucc.asn.au
/
uccvend-snackrom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Stage without sha1.
[uccvend-snackrom.git]
/
ROM2
/
chime.c
1
#include "vend.h"
2
#include "chime.h"
3
4
volatile 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; /* interrupts masked here, so this won't result in badness */
13
} else
14
chime_off();
15
}
16
UCC
git Repository :: git.ucc.asn.au