X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/209025e847108189669989a3715667aae4f17b54..76c082ca2a2c560e660daca0a8294b73881423d8:/avr/main.c?ds=sidebyside diff --git a/avr/main.c b/avr/main.c index 1fba3cb..6fd29a8 100644 --- a/avr/main.c +++ b/avr/main.c @@ -85,6 +85,7 @@ void print_reset_reason(void) ISR(INT5_vect) { Stat |= S_MSG_PENDING; + Stat |= S_IO_0X40; } ISR(INT6_vect) @@ -110,7 +111,7 @@ void setup_avr(void) _BV(PRUSART3) | _BV(PRUSART2) | _BV(PRUSART1); - /* disable analog comparator */ + /* Disable analog comparator */ ACSR = _BV(ACD); /* Ports */ @@ -118,11 +119,8 @@ void setup_avr(void) CLKPR = _BV(CLKPCE); CLKPR = 0; - /* Timer */ - PRR1 &= ~_BV(PRTIM4); - OCR4A = F_CPU / 1000 - 1; /* Timer4: 1000Hz interval */ - TCCR4B = (0b00<