From b0d8f22f3492fbb3f6dc0e8026e63c803af59007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 17 Oct 2015 15:40:51 +0200 Subject: Complete commit of current work --- src/timer.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/timer.c (limited to 'src/timer.c') diff --git a/src/timer.c b/src/timer.c new file mode 100644 index 0000000..68c6c06 --- /dev/null +++ b/src/timer.c @@ -0,0 +1,26 @@ +#include "../timer.h" + +#ifdef CONFIG_IOE_TIMERS + +#ifdef COUNTER0_PWM +ISR(TIMER0_OVF_vect, ISR_BLOCK) { + if (timer_0_pwm_overflow) + timer_0_pwm_overflow(); +} +#endif /* COUNTER0_PWM */ + +#ifdef COUNTER0_PWM +ISR(TIMER1_OVF_vect, ISR_BLOCK) { + if (timer_1_16pwm_overflow) + timer_1_16pwm_overflow(); +} +#endif /* COUNTER0_PWM */ + +#ifdef COUNTER0_PWM +ISR(TIMER2_OVF_vect, ISR_BLOCK) { + if (timer_2_pwm_overflow) + timer_2_pwm_overflow(); +} +#endif /* COUNTER0_PWM */ + +#endif /* CONFIG_IOE_TIMERS */ -- cgit v1.2.3