Firmware · Timers and PWM

Tick counters and wraparound

Firmware often needs timeouts based on a millisecond counter that eventually wraps around, and a naive comparison can fail on a real device.