X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=firmware%2Fmain.c;h=0e3395779e9c7a2c84afd71d912ef4b64868bb9f;hp=90bea63dc60d300c3f3e6723d6f0718979167cbb;hb=90ffd122f4387d18e8d7cf7d2a507c719409d4e5;hpb=647f353f4d8c87c5cf18cae905e9d600cd0e6bcb diff --git a/firmware/main.c b/firmware/main.c index 90bea63..0e33957 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -3,14 +3,11 @@ #include #include #include -#include #include "lights.h" static void hw_setup() { - wdt_enable(WDTO_1S); - init_battery(); init_pwm(); init_adc(); @@ -32,9 +29,8 @@ static void hw_suspend() susp_adc(); susp_tmr(); susp_gpio(); + susp_ambient(); susp_buttons(); - - wdt_disable(); } void power_down() @@ -75,7 +71,6 @@ int main(void) sei(); #if 1 while (1) { - wdt_reset(); sleep_mode(); } #endif