test/dsp: fix rtio_output

This commit is contained in:
Sebastien Bourdeauducq 2018-11-09 22:11:44 +08:00
parent e509ab8553
commit 1f7858b80b
1 changed files with 4 additions and 2 deletions

View File

@ -14,8 +14,10 @@ class RTIOManager:
def __init__(self):
self.outputs = []
def rtio_output(self, now, channel, addr, data):
self.outputs.append((now, channel, addr, data))
def rtio_output(self, target, data):
channel = target >> 8
addr = target & 0xff
self.outputs.append((now_mu(), channel, addr, data))
def rtio_output_wide(self, *args, **kwargs):
self.rtio_output(*args, **kwargs)