From 58fab8adff9a8f644529983c9513bab60843d4b2 Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Thu, 27 Nov 2014 00:09:55 +0100 Subject: [PATCH] fixed: it's OCR0, not OCR2 --- timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timer.c b/timer.c index 48d7b11..ec7919a 100644 --- a/timer.c +++ b/timer.c @@ -19,6 +19,7 @@ */ static volatile uint32_t _timer_time; + ISR(TIMER0_COMPA_vect) { ++_timer_time; return; @@ -46,7 +47,7 @@ void timer_init(void) // ==> let timer count to 77 to get (almost) 1kHz frequency // therefore: // - Set Timer/Counter0 prescaler to 256 ==> (1< (1<