]> www.fi.muni.cz Git - tinyboard.git/commitdiff
main.c modified for ATtiny45/step-up
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 25 Apr 2013 13:55:14 +0000 (15:55 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 25 Apr 2013 13:55:14 +0000 (15:55 +0200)
projects/step-up/main.c

index 90bea63dc60d300c3f3e6723d6f0718979167cbb..be940a689a81f0405adac0c1dcba822fd896d5f6 100644 (file)
@@ -11,21 +11,23 @@ static void hw_setup()
 {
        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();
@@ -59,18 +61,19 @@ void power_down()
        // 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