ad9914: use new rtio_output() API

This commit is contained in:
Sebastien Bourdeauducq 2018-11-08 19:15:44 +08:00
parent f74dda639f
commit 2549e623c1

View File

@ -84,7 +84,7 @@ class AD9914:
@kernel
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)
@kernel