#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 */