{
wdt_enable(WDTO_1S);
- init_battery();
+ //init_battery();
init_pwm();
init_adc();
- init_tmr();
- init_buttons();
- init_pwmled();
- init_gpio();
- init_ambient();
- init_pattern();
- init_control();
+ //init_tmr();
+ //init_buttons();
+
+ //init_pwmled();
+ //init_gpio();
+ //init_ambient();
+ //init_pattern();
+ //init_control();
set_sleep_mode(SLEEP_MODE_IDLE);
}
+#if 0
static void hw_suspend()
{
susp_pwm();
// ok, so I will wake up
hw_setup();
}
+#endif
int main(void)
{
init_log();
power_usi_disable(); // Once for lifetime
- ACSRA |= _BV(ACD); // disable analog comparator
+ ACSR |= _BV(ACD); // disable analog comparator
log_set_state(3);
hw_setup();
- power_down();
+ // power_down(); - not while still debugging
sei();
#if 1