-/* $Id: timers.c,v 1.1 2010/06/27 22:18:26 simimeie Exp $
+/* $Id: timers.c,v 1.2 2010/07/25 20:40:44 simimeie Exp $
* Functions for timing.
* This mainly allows you to get a timestamp value
*/
/* Internal ticks */
static volatile uint16_t ticks = 0;
-/* FIXME TCNT1H TCNT1L */
+void ledpwm_TIMER1OVF_hook(void);
/* Executes every 65536 cpu cycles when the timer overflows */
ISR(TIMER1_OVF_vect)
{
ticks++;
+ ledpwm_TIMER1OVF_hook();
}
uint16_t getticks(void)