2 #include <util/delay.h>
4 #include <avr/interrupt.h>
10 static void hw_setup()
26 set_sleep_mode(SLEEP_MODE_IDLE);
30 static void hw_suspend()
47 set_sleep_mode(SLEEP_MODE_PWR_DOWN);
57 // allow wakeup by long button-press only
58 } while (!buttons_wait_for_release());
60 // ok, so I will wake up
72 // power_down(); - not while still debugging