]> hydra-www.ietfng.org Git - acmetensortoys-chiptunes/commitdiff
target/main.c initialize timers with progenv/ vals
authorNathaniel Wesley Filardo <nwf@smaug.priv.ietfng.org>
Mon, 22 Feb 2010 01:55:05 +0000 (20:55 -0500)
committerNathaniel Wesley Filardo <nwf@smaug.priv.ietfng.org>
Mon, 22 Feb 2010 01:55:05 +0000 (20:55 -0500)
target/main.c

index 2f4f15869e7c24d83a58805afdeaf4480061dd97..5172a3de5ee9df3c590ba2d11cd28564685ec017 100644 (file)
@@ -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;