targets/kc705: add LED on RTIO

This commit is contained in:
Sebastien Bourdeauducq 2015-04-04 22:07:23 +08:00
parent 833178462d
commit 277e038569
2 changed files with 9 additions and 1 deletions

View File

@ -43,6 +43,12 @@
"class": "RTIOOut",
"arguments": {"channel": 4}
},
"led": {
"type": "local",
"module": "artiq.coredevice.rtio",
"class": "RTIOOut",
"arguments": {"channel": 18}
},
"dds0": {
"type": "local",

View File

@ -90,7 +90,9 @@ class _ARTIQSoCPeripherals(BaseSoC):
platform.request("ttl_h_tx_en").eq(1)
]
rtio_ins = [platform.request("pmt") for i in range(2)]
rtio_outs = [platform.request("ttl", i) for i in range(16)] + [fud]
rtio_outs = [platform.request("ttl", i) for i in range(16)]
rtio_outs.append(platform.request("user_led", 2))
rtio_outs.append(fud)
self.submodules.rtiocrg = _RTIOCRG(platform, self.crg.pll_sys)
self.submodules.rtiophy = rtio.phy.SimplePHY(