/* * Blinks the led using a simple delay loop. */ #include "avr/io.h" #include "util/delay.h" #include "led.h" #define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) int main(void) { CPU_PRESCALE(0); led_init(); for(;;) { _delay_ms(250); led_toggle(); } }