mirror of https://github.com/m-labs/artiq.git
Fix AD9914 channel map
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
8984f5104a
commit
b5d9062ba9
|
@ -81,8 +81,11 @@ class AD9914:
|
|||
self.exit_x_duration_mu = 3 * self.write_duration_mu
|
||||
|
||||
@staticmethod
|
||||
def get_rtio_channels(bus_channel, **kwargs):
|
||||
return [(bus_channel, None)]
|
||||
def get_rtio_channels(bus_channel, channel, **kwargs):
|
||||
# return only first entry, as there are several devices with the same RTIO channel
|
||||
if channel == 0:
|
||||
return [(bus_channel, None)]
|
||||
return []
|
||||
|
||||
@kernel
|
||||
def write(self, addr, data):
|
||||
|
|
Loading…
Reference in New Issue