forked from M-Labs/artiq-zynq
make LED channels output-only
This commit is contained in:
parent
6fbd6152da
commit
904ee3e730
@ -32,7 +32,7 @@ device_db = {
|
|||||||
"led3": {
|
"led3": {
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"module": "artiq.coredevice.ttl",
|
"module": "artiq.coredevice.ttl",
|
||||||
"class": "TTLInOut",
|
"class": "TTLOut",
|
||||||
"arguments": {"channel": 3}
|
"arguments": {"channel": 3}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
2
zc706.py
2
zc706.py
@ -32,7 +32,7 @@ class ZC706(SoCCore):
|
|||||||
rtio_channels = []
|
rtio_channels = []
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
pad = platform.request("user_led", i)
|
pad = platform.request("user_led", i)
|
||||||
phy = ttl_simple.InOut(pad)
|
phy = ttl_simple.Output(pad)
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
self.add_rtio(rtio_channels)
|
self.add_rtio(rtio_channels)
|
||||||
|
Loading…
Reference in New Issue
Block a user