From 7ebd33cb40aa50f187d7eaa7e44ce3499a6a2a3b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 6 Feb 2013 01:17:12 +0000 Subject: cleanup git-svn-id: https://svn.spreadspace.org/avr/trunk@124 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- usb-i2c-sl018/heartbeat.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'usb-i2c-sl018/heartbeat.c') diff --git a/usb-i2c-sl018/heartbeat.c b/usb-i2c-sl018/heartbeat.c index 6822320..fd9d5cb 100644 --- a/usb-i2c-sl018/heartbeat.c +++ b/usb-i2c-sl018/heartbeat.c @@ -50,13 +50,11 @@ void init_heartbeat(void) heartbeat_cnt = 0; heartbeat_flag = 1; - // timer 2: ~10 ms, timebase for heartbeat signal - TCCR0A = 1< ~10 ms @ 16 MHz - //OCR2A = 194; // (1+194)*1024 = 199680 -> ~10 ms @ 20 MHz - TCNT2 = 0; // reseting timer - TIMSK0 = 1< ~10 ms @ 16 MHz + TCNT2 = 0; + TIMSK0 = 1<