From 833178462dbae2d6477b529343c9277c765e80ac Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 4 Apr 2015 22:06:54 +0800 Subject: [PATCH] remove gpio driver --- artiq/coredevice/gpio.py | 16 ---------------- artiq/coredevice/runtime.py | 1 - examples/master/ddb.pyon | 7 ------- 3 files changed, 24 deletions(-) delete mode 100644 artiq/coredevice/gpio.py diff --git a/artiq/coredevice/gpio.py b/artiq/coredevice/gpio.py deleted file mode 100644 index aaa8ea212..000000000 --- a/artiq/coredevice/gpio.py +++ /dev/null @@ -1,16 +0,0 @@ -from artiq.language.core import * -from artiq.language.db import * - - -class GPIOOut(AutoDB): - class DBKeys: - core = Device() - channel = Argument() - - @kernel - def on(self): - syscall("gpio_set", self.channel, True) - - @kernel - def off(self): - syscall("gpio_set", self.channel, False) diff --git a/artiq/coredevice/runtime.py b/artiq/coredevice/runtime.py index 14b31c6cb..4c428d643 100644 --- a/artiq/coredevice/runtime.py +++ b/artiq/coredevice/runtime.py @@ -12,7 +12,6 @@ llvm.initialize_all_targets() llvm.initialize_all_asmprinters() _syscalls = { - "gpio_set": "ib:n", "rtio_oe": "ib:n", "rtio_set": "Iii:n", "rtio_get_counter": "n:I", diff --git a/examples/master/ddb.pyon b/examples/master/ddb.pyon index 467b58755..b98f3c486 100644 --- a/examples/master/ddb.pyon +++ b/examples/master/ddb.pyon @@ -12,13 +12,6 @@ "arguments": {} }, - "led": { - "type": "local", - "module": "artiq.coredevice.gpio", - "class": "GPIOOut", - "arguments": {"channel": 0} - }, - "pmt0": { "type": "local", "module": "artiq.coredevice.rtio",