+static void inline do_timer()
+{
+ // For now, we run them all in their own atomic blocks
+ ATOMIC_BLOCK(ATOMIC_FORCEON) {
+ timer_check_buttons();
+ }
+ ATOMIC_BLOCK(ATOMIC_FORCEON) {
+ patterns_next_tick();
+ }
+ ATOMIC_BLOCK(ATOMIC_FORCEON) {
+ pwm_disable_if_not_needed();
+ }
+ ATOMIC_BLOCK(ATOMIC_FORCEON) {
+ timer_start_slow_adcs();
+ }
+ ATOMIC_BLOCK(ATOMIC_FORCEON) {
+ if ((jiffies & 0x1FF) == 0)
+ ambient_log_min_max();
+ }
+}
+