mirror of https://github.com/m-labs/artiq.git
ad9914: use new rtio_output() API
This commit is contained in:
parent
f74dda639f
commit
2549e623c1
|
@ -84,7 +84,7 @@ class AD9914:
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def write(self, addr, data):
|
def write(self, addr, data):
|
||||||
rtio_output(now_mu(), self.bus_channel, addr, data)
|
rtio_output((self.bus_channel << 8) | addr, data)
|
||||||
delay_mu(self.write_duration_mu)
|
delay_mu(self.write_duration_mu)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
|
|
Loading…
Reference in New Issue