delay.c
void delay( int d ) // d = 0 ... 32000 { d += TCNT1; // not atomic ! while( (TCNT1 - d) & 0x8000 ); // not atomic ! }
delay.c
void delay( int d ) // d = 0 ... 32000 { d += TCNT1; // not atomic ! while( (TCNT1 - d) & 0x8000 ); // not atomic ! }