]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/main.c
Power management - make every module enable power for its own HW.
[tinyboard.git] / projects / step-up / main.c
index 55e2ef75737cd58e437d7750954ccc7078b393d1..20f339e3b79d7305f95cc20cce9af80eef084a27 100644 (file)
@@ -9,6 +9,8 @@
 
 static void hw_setup()
 {
+       power_all_disable();
+
        wdt_enable(WDTO_1S);
 
        //init_battery();
@@ -67,9 +69,6 @@ int main(void)
 {
        init_log();
 
-       power_usi_disable(); // Once for lifetime
-       ACSR |= _BV(ACD);    // disable analog comparator
-
        log_set_state(3);
 
        hw_setup();