diff --git a/artiq/devices/gpio_core.py b/artiq/devices/gpio_core.py new file mode 100644 index 000000000..e457ec0a2 --- /dev/null +++ b/artiq/devices/gpio_core.py @@ -0,0 +1,12 @@ +from artiq.language.experiment import * + +class GPIOOut: + def __init__(self, core, channel=0): + self.core = core + self.channel = channel + + kernel_attr_ro = "channel" + + @kernel + def set(self, level): + syscall("gpio_set", self.channel, level)