projects
/
moodlight.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preliminary support for 16 bit pwm. The 16 bit counter ist still used for
[moodlight.git]
/
timers.c
diff --git
a/timers.c
b/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
*/
* Functions for timing.
* This mainly allows you to get a timestamp value
*/
@@
-10,12
+10,13
@@
/* Internal ticks */
static volatile uint16_t ticks = 0;
/* 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++;
/* Executes every 65536 cpu cycles when the timer overflows */
ISR(TIMER1_OVF_vect)
{
ticks++;
+ ledpwm_TIMER1OVF_hook();
}
uint16_t getticks(void)
}
uint16_t getticks(void)
This page took
0.0405 seconds
and
4
git commands to generate.