From 248230a89ebb76998d1e4b048238a92f53c4ab8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 20 Jan 2020 13:22:22 +0100 Subject: [PATCH] fastino: style --- artiq/coredevice/fastino.py | 4 ++-- artiq/gateware/targets/kasli_generic.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/fastino.py b/artiq/coredevice/fastino.py index a84a947e9..baa01529f 100644 --- a/artiq/coredevice/fastino.py +++ b/artiq/coredevice/fastino.py @@ -4,7 +4,7 @@ streaming DAC. TODO: Example, describe update/hold """ -from artiq.language.core import kernel, portable +from artiq.language.core import kernel, portable, delay from artiq.coredevice.rtio import rtio_output, rtio_input_data from artiq.language.units import us @@ -112,7 +112,7 @@ class Fastino: error counting. """ self.write(0x22, (reset << 0) | (afe_power_down << 1) | - (dac_clr << 2) | (clr_err << 3)) + (dac_clr << 2) | (clr_err << 3)) @kernel def set_leds(self, leds): diff --git a/artiq/gateware/targets/kasli_generic.py b/artiq/gateware/targets/kasli_generic.py index 477fecf16..a3e03ef7b 100755 --- a/artiq/gateware/targets/kasli_generic.py +++ b/artiq/gateware/targets/kasli_generic.py @@ -105,7 +105,7 @@ def peripheral_mirny(module, peripheral): eem.Mirny.add_std(module, peripheral["ports"][0], ttl_serdes_7series.Output_8X) - + def peripheral_fastino(module, peripheral): if len(peripheral["ports"]) != 1: raise ValueError("wrong number of ports")