A little sanity checker.
[uccvend-snackrom.git] / ROM2 / chime.h
index e7543fc..bd93ab4 100644 (file)
@@ -6,10 +6,11 @@
 
 #define CHIME_TIME 5 /* number of RTIs to have the chime on (6.6ms each) */
 
-extern u8 chime_count;
+extern volatile u8 chime_count;
 
 /* outside world interface */
 extern inline void chime_start() { chime_count = CHIME_TIME; }
+extern inline void chime_for(u8 time) { chime_count = time; }
 
 void chime(); /* RTI interrupt */
 

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