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