summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime_utils.c
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2025-06-16 12:35:51 +0100
committerChris Webb <chris@arachsys.com>2025-06-16 12:35:51 +0100
commit7816b1f5134b24d5c352af679d398a491a427edd (patch)
tree704dfac117e3f5100f1df23cbf6c18952a905a66 /py/runtime_utils.c
parentcfcc53da72d330d2eb9728d5f75c3ef5b459f1cf (diff)
downloadmicropython-7816b1f5134b24d5c352af679d398a491a427edd.tar.gz
micropython-7816b1f5134b24d5c352af679d398a491a427edd.zip
rp2/machine_timer: Support hard IRQ timer callbacks.
Unlike some boards like stm32, timer callbacks on the rp2 port are unconditionally dispatched via mp_sched_schedule(), behaving like soft IRQs with consequent GC jitter and delays. Add a 'hard' keyword argument to the rp2 Timer constructor and init. This defaults to False but if it is set True, the timer callback will be dispatched in hard IRQ context rather than queued. Signed-off-by: Chris Webb <chris@arachsys.com>
Diffstat (limited to 'py/runtime_utils.c')
0 files changed, 0 insertions, 0 deletions