make LED channels output-only

This commit is contained in:
Sebastien Bourdeauducq 2020-04-26 11:51:06 +08:00
parent 6fbd6152da
commit 904ee3e730
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ device_db = {
"led3": {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLInOut",
"class": "TTLOut",
"arguments": {"channel": 3}
},
}

View File

@ -32,7 +32,7 @@ class ZC706(SoCCore):
rtio_channels = []
for i in range(4):
pad = platform.request("user_led", i)
phy = ttl_simple.InOut(pad)
phy = ttl_simple.Output(pad)
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy))
self.add_rtio(rtio_channels)