]> git.zerfleddert.de Git - rsbs2/commitdiff
more precise timings
authorMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 11:07:24 +0000 (13:07 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 11:07:24 +0000 (13:07 +0200)
bmc/chassis.c

index ed2406372eec028d197c7dec8b3825ecea31e444..e2d26f6f5a00495e8a6425c92d1f27e09d846e8d 100644 (file)
@@ -32,9 +32,9 @@ void chassis_init()
        CDDR |= ((1<<POWER_PIN) | (1<<RESET_PIN));
 
        /* About 1ms */
-       OCR0 = ((F_CPU/256)/1000)-1;
+       OCR0 = ((F_CPU/64)/1000) - 1;
 
-       TCCR0 = ((1<<WGM01) | (1<<CS02)); /* CTC, Prescaler 256 */
+       TCCR0 = ((1<<WGM01) | (1<<CS01) | (1<<CS00)); /* CTC, Prescaler 64 */
        TIMSK |= (1<<OCIE0);
 
 }
Impressum, Datenschutz