E
elcielo
Guest
unsigned int g_usec; nietig TimerInit (void) {TCCR0 = 0x00; / / stop ASSR = 0x00; / / set async mode TCNT0 = 0xC6; / / set count OCR0 = 0x3A; TCCR0 = 0x01; / / start timer TIMSK = 0x01; } leegte vertraging (unsigned int us) {g_usec = 0; if (ons> 0) en (g_usec