X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/209025e847108189669989a3715667aae4f17b54..aea51b6c4c93c56715f50e64d424e1181c6d0242:/avr/main.c?ds=sidebyside diff --git a/avr/main.c b/avr/main.c index 1fba3cb..09df64b 100644 --- a/avr/main.c +++ b/avr/main.c @@ -110,7 +110,7 @@ void setup_avr(void) _BV(PRUSART3) | _BV(PRUSART2) | _BV(PRUSART1); - /* disable analog comparator */ + /* Disable analog comparator */ ACSR = _BV(ACD); /* Ports */ @@ -118,11 +118,8 @@ void setup_avr(void) CLKPR = _BV(CLKPCE); CLKPR = 0; - /* Timer */ - PRR1 &= ~_BV(PRTIM4); - OCR4A = F_CPU / 1000 - 1; /* Timer4: 1000Hz interval */ - TCCR4B = (0b00<