2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

devices/gpio_core: use MPO

This commit is contained in:
Sebastien Bourdeauducq 2014-07-20 18:23:53 -06:00
parent 5f58789592
commit 1885a87187

View File

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