[an error occurred while processing this directive]
|
Что не так:
...
порты на вывод
...
void timer2_init(void)
{
TCCR2 = 0x00; //stop
ASSR = 0x00; //set async mode
TCNT2 = 0x01; //setup
OCR2 = 0xFF;
TCCR2 = 0x69; //start
}
...
MCUCR = 0x00;
GICR = 0x00;
TIMSK = 0x00;
...