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 timer_start_slow_adcs();
27 if ((jiffies & 0x7FF) == 0)
28 ambient_log_min_max();
30 WDTCR |= _BV(WDIE); // avoid WDT reset next time