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
Update README to reflect new repository structure
[uccvend-snackrom.git]
/
ROM2
/
chime.h
diff --git
a/ROM2/chime.h
b/ROM2/chime.h
index
e7543fc
..
4d4553d
100644
(file)
--- a/
ROM2/chime.h
+++ b/
ROM2/chime.h
@@
-4,12
+4,16
@@
#include "types.h"
#include "vend.h"
#include "types.h"
#include "vend.h"
-#define CHIME_TIME
5
/* number of RTIs to have the chime on (6.6ms each) */
+#define CHIME_TIME
1
/* number of RTIs to have the chime on (6.6ms each) */
-extern u8 chime_count;
+extern volatile u8 chime_count;
+extern volatile u8 unchime_count;
/* outside world interface */
extern inline void chime_start() { chime_count = CHIME_TIME; }
/* outside world interface */
extern inline void chime_start() { chime_count = CHIME_TIME; }
+extern inline void unchime_start() { unchime_count = CHIME_TIME; }
+extern inline void chime_for(u8 time) { chime_count = time; }
+extern inline void unchime_for(u8 time) { unchime_count = time; }
void chime(); /* RTI interrupt */
void chime(); /* RTI interrupt */
UCC
git Repository :: git.ucc.asn.au