micropython/tests/ports/rp2
Angus Gratton ba98533454 rp2: Stop machine.idle() blocking indefinitely.
Updates rp2 port to always resume from idle within 1ms max.

When rp2 port went tickless the behaviour of machine.idle() changed as
there is no longer a tick interrupt to wake it up every millisecond. On a
quiet system it would now block indefinitely. No other port does this.

See parent commit for justification of why this change is useful.

Also adds a test case that fails without this change.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2024-07-23 16:46:27 +10:00
..
rp2_dma.py tests/ports/rp2/rp2_dma.py: Tweak test to be more reliable. 2024-01-30 12:50:19 +11:00
rp2_dma.py.exp tests/ports/rp2/rp2_dma.py: Tweak test to be more reliable. 2024-01-30 12:50:19 +11:00
rp2_lightsleep.py rp2: Fix USB PLL glitch during wake from light sleep. 2024-06-25 16:25:19 +10:00
rp2_lightsleep.py.exp rp2: Fix USB PLL glitch during wake from light sleep. 2024-06-25 16:25:19 +10:00
rp2_machine_idle.py rp2: Stop machine.idle() blocking indefinitely. 2024-07-23 16:46:27 +10:00
rp2_machine_idle.py.exp rp2: Stop machine.idle() blocking indefinitely. 2024-07-23 16:46:27 +10:00