forked from M-Labs/artiq
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
|
self.exit_x_duration_mu = 3 * self.write_duration_mu
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_rtio_channels(bus_channel, **kwargs):
|
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 [(bus_channel, None)]
|
||||||
|
return []
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def write(self, addr, data):
|
def write(self, addr, data):
|
||||||
|
|
Loading…
Reference in New Issue