set_sleep_mode(SLEEP_MODE_IDLE);
}
-#if 0
static void hw_suspend()
{
susp_pwm();
susp_adc();
- susp_tmr();
- susp_gpio();
susp_buttons();
wdt_disable();
+ power_all_disable();
}
void power_down()
// ok, so I will wake up
hw_setup();
}
-#endif
int main(void)
{
log_set_state(3);
hw_setup();
- // power_down(); - not while still debugging
+ power_down();
sei();
#if 1