From 1885a8718700eaf83e7074e24127a32acc3c806c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 20 Jul 2014 18:23:53 -0600 Subject: [PATCH] devices/gpio_core: use MPO --- artiq/devices/gpio_core.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/artiq/devices/gpio_core.py b/artiq/devices/gpio_core.py index 31884b60f..4b6fa4b95 100644 --- a/artiq/devices/gpio_core.py +++ b/artiq/devices/gpio_core.py @@ -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):