7 #define CHIME_TIME 5 /* number of RTIs to have the chime on (6.6ms each) */
9 extern volatile u8 chime_count;
11 /* outside world interface */
12 extern inline void chime_start() { chime_count = CHIME_TIME; }
13 extern inline void chime_for(u8 time) { chime_count = time; }
15 void chime(); /* RTI interrupt */
17 /* internal helpers, also could be called from outside world */
18 extern inline void chime_on() { bset((void*)&_io_ports[M6811_PORTA], PORTA_CHIME); }
19 extern inline void chime_off() { bclr((void*)&_io_ports[M6811_PORTA], PORTA_CHIME);}
21 #endif /* _CHIME_H_ */