forked from M-Labs/artiq
1
0
Fork 0

devices/rtio_core: add dummy counter

This commit is contained in:
Sebastien Bourdeauducq 2014-09-13 19:37:57 +08:00
parent 5c228f9114
commit a55018953d
1 changed files with 12 additions and 0 deletions

View File

@ -37,3 +37,15 @@ class RTIOOut(AutoContext):
self.on() self.on()
delay(duration) delay(duration)
self.off() self.off()
class RTIOCounter(AutoContext):
parameters = "channel"
@kernel
def count_rising(self, duration):
pass
@kernel
def sync(self):
return 42