forked from M-Labs/artiq
remove gpio driver
This commit is contained in:
parent
21a0919ddc
commit
833178462d
@ -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)
|
@ -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",
|
||||
|
@ -12,13 +12,6 @@
|
||||
"arguments": {}
|
||||
},
|
||||
|
||||
"led": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.gpio",
|
||||
"class": "GPIOOut",
|
||||
"arguments": {"channel": 0}
|
||||
},
|
||||
|
||||
"pmt0": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.rtio",
|
||||
|
Loading…
Reference in New Issue
Block a user