diff options
author | Damien George <damien@micropython.org> | 2025-04-28 13:28:15 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-01 13:18:28 +1000 |
commit | 00a0cd70f54241d4c8fb04c396a636cb0d3a1535 (patch) | |
tree | e9a1abcd3d6bc0beb63b2dcc5654136c7bacc988 /tests/extmod/ticks_diff.py.exp | |
parent | ffd7e0e28d030225dcfdfc8af6fb6eb79fbdd56f (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
Changes in this commit:
- Allow the DMA instance to be any instance, not just DMA(0); eg WLAN may
be using DMA(0).
- Make the DMA timing test run a little faster by preloading `dma.active`.
- Run the DMA timing test 10 times and take the average time taken as the
test result, to eliminate any big effects of caching.
- Change the expected time to `range(30, 80)` to cover RP2040, RP2350,
RISC-V variants, and both bytecode and native emitter.
- Add a `sleep_ms(1)` after waiting for the IRQ to fire, so that any
scheduled code gets a chance to run when the test is compiled with the
native emitter.
With these changes this test passes reliably on RPI_PICO, RPI_PICO_W,
RPI_PICO2, RPI_PICO2_W, RPI_PICO2-RISCV and RPI_PICO2_W-RISCV, in both
bytecode and native emitter mode, with and without WLAN enabled.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/ticks_diff.py.exp')
0 files changed, 0 insertions, 0 deletions