circuitpython/tests/ports
Angus Gratton 69993daa5c rp2/modmachine: Add mutual exclusion for machine.lightsleep().
There's no specified behaviour for what should happen if both CPUs call
`lightsleep()` together, but the latest changes could cause a permanent
hang due to a race in the timer cleanup code.  Add a flag to prevent hangs
if two threads accidentally lightsleep, at least.

This allows the new lightsleep test to pass on RPI_PICO and RPI_PICO2, and
even have much tighter time deltas.  However, the test still fails on
wireless boards where the lwIP tick wakes them up too frequently.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2025-05-12 16:30:46 +10:00
..
alif_hardware tests/ports/alif_hardware: Add flash testing script. 2025-04-09 00:22:33 +10:00
cc3200 all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
esp32 tests: Four typos in tests directory. 2025-02-25 23:34:53 +11:00
qemu py/emitinlinerv32: Add inline assembler support for RV32. 2025-01-02 11:49:10 +11:00
renesas-ra tests: Move port-specific test directories into tests/ports/ directory. 2024-01-22 11:48:27 +11:00
rp2 rp2/modmachine: Add mutual exclusion for machine.lightsleep(). 2025-05-12 16:30:46 +10:00
stm32 tests: Move port-specific test directories into tests/ports/ directory. 2024-01-22 11:48:27 +11:00
stm32_hardware tests/ports/stm32_hardware: Convert DMA test to use unittest. 2024-12-06 13:48:23 +11:00
unix extmod/modmarshal: Add new marshal module. 2025-02-11 16:54:20 +11:00
webassembly webassembly: Reuse PyProxy objects when they are the same Python object. 2024-07-19 11:55:24 +10:00