From 2937adc985fa4d6e55fbf2df5a0ace5793d6e938 Mon Sep 17 00:00:00 2001 From: bigalex Date: Mon, 1 Oct 2012 19:23:36 +0200 Subject: [PATCH] some cleanup --- firmware/main.c | 119 +----------------------------------------------- 1 file changed, 1 insertion(+), 118 deletions(-) diff --git a/firmware/main.c b/firmware/main.c index a6d9e73..69a9249 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -1,6 +1,7 @@ #include #include #include +#define __DELAY_BACKWARD_COMPATIBLE__ #include #include @@ -10,76 +11,6 @@ #include "lib/bughal.h" -uint16_t sw_v = 0; -uint16_t darkness = 0; -uint16_t darkval = 0; -uint16_t last_darkval = 0; - - -static void init_sampletimer(void) -{ - /* - * Timer 0 - */ - - /* set timer0 to CTC & prescaler 64 → 125kHz increment */ - TCCR0A = (1 << WGM01); - TCCR0B = (1 << CS00) | (1 << CS01); - - OCR0A = 6; /* TOP */ - TCNT0 = 0; - /*enable interrupt*/ - TIMSK0 |= (1<