36#define LED_INIT() DDRB |= (1 << 0)
37#define LED_ON() PORTB |= (1 << 0)
38#define LED_OFF() PORTB &= ~(1 << 0)
41#define F_CPU 7372800ul
53 TCCR1A = (0 << WGM11) | (0 << WGM10);
54 TCCR1B = (0 << WGM13) | (1 << WGM12) | (1 << CS12) | (0 << CS11) | (1 << CS10);
57void tmr_delay(uint16_t delay_ms)
60 OCR1A = ((
F_CPU / 1024) * delay_ms) / 1000;
67 while((TIFR1 & (1 << OCF1A)) == 0) {;}
#define F_CPU
Processor frequency in Hz.