From 5ad3d24d437ea80a64c3b50e780efcf33a83a706 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sun, 21 Feb 2010 20:55:05 -0500 Subject: [PATCH] target/main.c initialize timers with progenv/ vals --- target/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/main.c b/target/main.c index 2f4f158..5172a3d 100644 --- a/target/main.c +++ b/target/main.c @@ -359,8 +359,8 @@ int main() { initresources(); TCCR0A = 0x02; - TCCR0B = 0x02; // clkIO/8, so 1/8 MHz - OCR0A = 62;//125; // 8 KHz + TCCR0B = T0DIV & 0x7; + OCR0A = T0MAX; TIMSK0 = 0x02; -- 2.50.1