X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=main.c;h=57ffa14c097e2fcfd4af0df4241b795326450165;hb=17c3ca665220350644eded751e14820324c4ba86;hp=356f8d4f8ecab70181d87fb8e0b21b6f2f8c0198;hpb=c2744894b3254d027de5473970ccddc9a394c442;p=bike-lights.git diff --git a/main.c b/main.c index 356f8d4..57ffa14 100644 --- a/main.c +++ b/main.c @@ -14,6 +14,7 @@ int main(void) init_pwm(); init_adc(); init_tmr(); + init_buttons(); pwmled_init(); gpio_init(); @@ -22,10 +23,12 @@ int main(void) log_set_state(3); + set_sleep_mode(SLEEP_MODE_IDLE); + sei(); #if 1 while (1) - ; // sleep_mode(); + sleep_mode(); #endif #if 0