We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8cd44b commit 15f3696Copy full SHA for 15f3696
tests/ports/rp2/rp2_dma.py
@@ -62,7 +62,8 @@ def run_and_time_dma(dma):
62
dma.count = len(dest) // 4
63
dma.ctrl = dma.pack_ctrl()
64
dt = run_and_time_dma(dma)
65
-print(70 <= dt <= 110)
+expected_dt = 90 * 120000000 // machine.freq()
66
+print(abs(dt - expected_dt) <= 20)
67
print(dest[:8], dest[-8:])
68
dma.close()
69
0 commit comments