X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=moodlight.git;a=blobdiff_plain;f=timers.c;fp=timers.c;h=eb2f2fe46600c8eda98ebb5d7544b0aa5399ee38;hp=754db0605cb48d5facf94771aa78f6bee11bf4fa;hb=4307b86abbc1664bf3de89518962491a9e491653;hpb=e001c0863c4fee6b80e36464cdbd05b0c8ce25a9 diff --git a/timers.c b/timers.c index 754db06..eb2f2fe 100644 --- a/timers.c +++ b/timers.c @@ -1,4 +1,4 @@ -/* $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 */ @@ -10,12 +10,13 @@ /* 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)