4 * Copyright (C) 2000 Bernardo Innocenti
5 * Copyright (C) 2003,2004 Develer S.r.l. (http://www.develer.com/)
11 * \author Bernardo Innocenti <bernie@develer.com>
13 * \brief Low-level timer module for AVR
18 * Revision 1.1 2004/05/23 18:23:30 bernie
19 * Import drv/timer module.
27 * Retrigger TIMER2, adjusting the time to account for
28 * the interrupt prologue latency.
30 # define TIMER_RETRIGGER (TIMER2 -= TICKS_RATE)
33 TIMER2 = (65535 - TICKS_RATE); \
34 INT_MASK1 |= INT1F_T2OVF; \
38 IOC3 |= IOC3F_T2_ENA; \
42 #define DEFINE_TIMER_ISR \
43 INTERRUPT(0x38) void TM2_OVFL_interrupt(void); \
44 INTERRUPT(0x38) void TM2_OVFL_interrupt(void)
46 #endif /* DRV_TIMER_I196_H */