Skip to content

Commit 15f3696

Browse files
committed
tests/ports/rp2: Update DMA test for higher freq CPU.
Signed-off-by: Damien George <[email protected]>
1 parent e8cd44b commit 15f3696

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ports/rp2/rp2_dma.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def run_and_time_dma(dma):
6262
dma.count = len(dest) // 4
6363
dma.ctrl = dma.pack_ctrl()
6464
dt = run_and_time_dma(dma)
65-
print(70 <= dt <= 110)
65+
expected_dt = 90 * 120000000 // machine.freq()
66+
print(abs(dt - expected_dt) <= 20)
6667
print(dest[:8], dest[-8:])
6768
dma.close()
6869

0 commit comments

Comments
 (0)