mirror of https://github.com/m-labs/artiq.git
test/dsp: fix rtio_output
This commit is contained in:
parent
e509ab8553
commit
1f7858b80b
|
@ -14,8 +14,10 @@ class RTIOManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.outputs = []
|
self.outputs = []
|
||||||
|
|
||||||
def rtio_output(self, now, channel, addr, data):
|
def rtio_output(self, target, data):
|
||||||
self.outputs.append((now, channel, addr, data))
|
channel = target >> 8
|
||||||
|
addr = target & 0xff
|
||||||
|
self.outputs.append((now_mu(), channel, addr, data))
|
||||||
|
|
||||||
def rtio_output_wide(self, *args, **kwargs):
|
def rtio_output_wide(self, *args, **kwargs):
|
||||||
self.rtio_output(*args, **kwargs)
|
self.rtio_output(*args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue