From c9daddb636b3c03b5c53da2ef8e11b927927dd04 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 7 Feb 2013 02:15:37 +0000 Subject: lowpass filterd manual switch git-svn-id: https://svn.spreadspace.org/avr/trunk@167 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- usb-i2c-sl018/heartbeat.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usb-i2c-sl018/heartbeat.c') diff --git a/usb-i2c-sl018/heartbeat.c b/usb-i2c-sl018/heartbeat.c index fd7f11a..47caffc 100644 --- a/usb-i2c-sl018/heartbeat.c +++ b/usb-i2c-sl018/heartbeat.c @@ -32,6 +32,10 @@ uint8_t heartbeat_cnt = 0; uint8_t heartbeat_flag; +#define FASTBEAT_PORT PORTD +#define FASTBEAT_DDR DDRD +#define FASTBEAT_BIT 5 + // while running this gets called every ~10ms ISR(TIMER0_COMPA_vect) { @@ -55,10 +59,14 @@ void init_heartbeat(void) OCR0A = 155; // (1+155)*1024 = 159744 -> ~10 ms @ 16 MHz TCNT2 = 0; TIMSK0 = 1<