ddb_template: print LED channel nos on Kasli v2

pull/1740/head
Robert Jördens 2021-08-05 17:29:38 +02:00
parent c9608c0a89
commit fd824f7ad0
1 changed files with 2 additions and 1 deletions

View File

@ -48,9 +48,10 @@ class GenericStandalone(StandaloneBase):
self.rtio_channels.append(rtio.Channel.from_phy(phy))
if hw_rev == "v2.0":
for i in (1, 2):
print("USER LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
phy = ttl_simple.Output(self.platform.request("user_led", i))
self.submodules += phy
self.rtio_channels.append(rtio.Channel.from_phy(phy))
self.rtio_channels.append(rtio.Channel.from_phy(phy))
self.config["HAS_RTIO_LOG"] = None
self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels)