]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/main.c
Watchdog-based timing
[bike-lights.git] / firmware / main.c
index 393f47dff68b6a475625983726a7a47cae3dcf6b..0e3395779e9c7a2c84afd71d912ef4b64868bb9f 100644 (file)
@@ -3,14 +3,11 @@
 #include <avr/sleep.h>
 #include <avr/interrupt.h>
 #include <avr/power.h>
-#include <avr/wdt.h>
 
 #include "lights.h"
 
 static void hw_setup()
 {
-       wdt_enable(WDTO_1S);
-
        init_battery();
        init_pwm();
        init_adc();
@@ -34,8 +31,6 @@ static void hw_suspend()
        susp_gpio();
        susp_ambient();
        susp_buttons();
-
-       wdt_disable();
 }
 
 void power_down()
@@ -76,7 +71,6 @@ int main(void)
        sei();
 #if 1
        while (1) {
-               wdt_reset();
                sleep_mode();
        }
 #endif