X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=tinyboard.git;a=blobdiff_plain;f=projects%2Fstep-up%2Fmain.c;fp=projects%2Fstep-up%2Fmain.c;h=69657a8a70052d37b5b4cdd1545febfeba8ad456;hp=383aa5eed990ead218315efe687846100b1f3df0;hb=3e9d94b2511bc76aab92b2af38aacadf2dbe4dab;hpb=ffb4982594d98b8d8ecd9efcfe37c17e0f2fc53b diff --git a/projects/step-up/main.c b/projects/step-up/main.c index 383aa5e..69657a8 100644 --- a/projects/step-up/main.c +++ b/projects/step-up/main.c @@ -26,16 +26,14 @@ static void hw_setup() set_sleep_mode(SLEEP_MODE_IDLE); } -#if 0 static void hw_suspend() { susp_pwm(); susp_adc(); - susp_tmr(); - susp_gpio(); susp_buttons(); wdt_disable(); + power_all_disable(); } void power_down() @@ -60,7 +58,6 @@ void power_down() // ok, so I will wake up hw_setup(); } -#endif int main(void) { @@ -69,7 +66,7 @@ int main(void) log_set_state(3); hw_setup(); - // power_down(); - not while still debugging + power_down(); sei(); #if 1