-}
-
-static void inline adc_based_timer()
-{
- static unsigned char count;
-
- if (++count < 40) // about 100 Hz jiffies
- return;
-
- count = 0;
- ++jiffies;
-
- if ((jiffies & 0x007F) == 1) { // about every 1s
- need_battery_adc = 1;
- }
- if ((jiffies & 0x0007) == 0) {
- patterns_next_tick();
- }
- timer_check_buttons();