Home | History | Annotate | Download | only in m32c

Lines Matching refs:timer_a

41 #ifdef TIMER_A
43 #include "timer_a.h"
64 #ifdef TIMER_A
65 Timer_A timer_a;
240 #ifdef TIMER_A
243 timer_a.count = (timer_a.count & 0xff00) | value;
244 timer_a.reload = timer_a.count;
247 timer_a.count = (timer_a.count & 0x00ff) | (value << 8);
248 timer_a.reload = timer_a.count;
251 timer_a.bsr = value;
254 timer_a.mode = value;
257 timer_a.tcspr = value;
260 timer_a.ic = value;
265 timer_a.bsr = value;
268 timer_a.mode = value;
271 timer_a.count = value;
272 timer_a.reload = value;
275 timer_a.tcspr = value;
278 timer_a.ic = value;
468 #ifdef TIMER_A
470 return timer_a.count & 0xff;
472 return (timer_a.count >> 8) & 0xff;
474 return timer_a.count;
564 #if TIMER_A
568 if (timer_a.bsr & 1)
570 timer_a.prescale--;
571 if (timer_a.prescale < 0)
575 switch (timer_a.mode & 0xc0)
578 timer_a.prescale = 0;
581 timer_a.prescale = 8;
584 timer_a.prescale = timer_a.tcspr & 0x0f;
587 timer_a.prescale = 32;
593 timer_a.prescale = timer_a.tcspr;
595 timer_a.count--;
596 if (timer_a.count < 0)
598 timer_a.count = timer_a.reload;
599 if (timer_a.ic & 7)
602 mem_put_qi (0x6c, timer_a.ic | 0x08);
604 mem_put_qi (0x56, timer_a.ic | 0x08);
611 && timer_a.ic & 0x08 /* timer A interrupt triggered */
612 && (timer_a.ic & 0x07) > ((regs.r_flags >> 12) & 0x07))