From c45a872cbadf193ce783efcb2d72b3b1bae7f54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 16 Jan 2020 13:39:52 +0000 Subject: [PATCH] fastino: fix init, set_cfg --- artiq/coredevice/fastino.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/fastino.py b/artiq/coredevice/fastino.py index 30c6bca54..a84a947e9 100644 --- a/artiq/coredevice/fastino.py +++ b/artiq/coredevice/fastino.py @@ -29,9 +29,9 @@ class Fastino: This clears reset, unsets DAC_CLR, enables AFE_PWR, clears error counters, then enables error counting """ - self.set_cfg(0x8) + self.set_cfg(reset=0, afe_power_down=0, dac_clr=0, clr_err=1) delay(1*us) - self.set_cfg(0x0) + self.set_cfg(reset=0, afe_power_down=0, dac_clr=0, clr_err=0) delay(1*us) @kernel @@ -111,7 +111,7 @@ class Fastino: This clears the sticky red error LED. Must be cleared to enable error counting. """ - self.write(0x22, (reset << 0) | (afe_pwr_disable << 1) | + self.write(0x22, (reset << 0) | (afe_power_down << 1) | (dac_clr << 2) | (clr_err << 3)) @kernel