diff -r 000000000000 -r cae83b7bfcf4 src/hello.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hello.c Wed Sep 24 22:41:46 2014 +0300 @@ -0,0 +1,27 @@ +#include +#include + +#define DEBUG_DDR DDRB +#define DEBUG_PIN 5 +#define DEBUG_PORT PORTB + +#include "debug.h" +#include "timer.h" + +int main (void) +{ + debug_init(); + timer_init(); + + // init + debug_set(); + sei(); + + unsigned short timeout = 8000; + + // start + while (true) { + timer_sleep(timeout); + debug_toggle(); + } +}