preliminary support for 16 bit pwm. The 16 bit counter ist still used for
[moodlight.git] / timers.c
index 754db0605cb48d5facf94771aa78f6bee11bf4fa..eb2f2fe46600c8eda98ebb5d7544b0aa5399ee38 100644 (file)
--- 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
  */
 /* 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)
This page took 0.055335 seconds and 4 git commands to generate.