You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extmod/machine_timer: Support hard IRQ soft timer callbacks.
machine.Timer() has inconsistent behaviour between ports: some run
callbacks in hard IRQ context whereas others schedule them like soft IRQs.
The rp2 Timer constructor now has a hard= argument to explicitly choose
between these. Add support for this for ports using the generic software
timer, setting the default to False to match the existing behaviour.
Signed-off-by: Chris Webb <chris@arachsys.com>
0 commit comments