From a55018953d8eebc8eabf12901c451c956b058d11 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 13 Sep 2014 19:37:57 +0800 Subject: [PATCH] devices/rtio_core: add dummy counter --- artiq/devices/rtio_core.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/artiq/devices/rtio_core.py b/artiq/devices/rtio_core.py index 2c0b1988f..694e2e2e2 100644 --- a/artiq/devices/rtio_core.py +++ b/artiq/devices/rtio_core.py @@ -37,3 +37,15 @@ class RTIOOut(AutoContext): self.on() delay(duration) self.off() + + +class RTIOCounter(AutoContext): + parameters = "channel" + + @kernel + def count_rising(self, duration): + pass + + @kernel + def sync(self): + return 42