2 #include <avr/interrupt.h>
7 volatile uint16_t jiffies;
11 wdt_enable(WDTO_60MS);
12 WDTCR |= _BV(WDIE); // interrupt mode, 64 ms
23 timer_check_buttons();
25 pwm_disable_if_not_needed();
26 timer_start_slow_adcs();
28 if ((jiffies & 0x7FF) == 0)
29 ambient_log_min_max();
31 WDTCR |= _BV(WDIE); // avoid WDT reset next time