forked from M-Labs/artiq
1
0
Fork 0

devices/gpio_core: use MPO

This commit is contained in:
Sebastien Bourdeauducq 2014-07-20 18:23:53 -06:00
parent 5f58789592
commit 1885a87187
1 changed files with 2 additions and 6 deletions

View File

@ -1,11 +1,7 @@
from artiq.language.core import * from artiq.language.core import *
class GPIOOut: class GPIOOut(MPO):
def __init__(self, core, channel=0): parameters = "channel"
self.core = core
self.channel = channel
kernel_attr_ro = "channel"
@kernel @kernel
def set(self, level): def set(self, level):