forked from M-Labs/artiq
parent
bcb030cc9c
commit
9dee8bb9c9
|
@ -550,9 +550,7 @@ def process(output, master_description, satellites):
|
|||
for peripheral in master_description["peripherals"]:
|
||||
n_channels = pm.process(rtio_offset, peripheral)
|
||||
rtio_offset += n_channels
|
||||
kasli_with_leds = (master_description["target"] == "kasli" and master_description["hw_rev"] in ("v1.0", "v1.1"))
|
||||
kasli_soc = master_description["target"] == "kasli_soc"
|
||||
if base == "standalone" and kasli_with_leds or kasli_soc:
|
||||
if base == "standalone":
|
||||
n_channels = pm.add_board_leds(rtio_offset)
|
||||
rtio_offset += n_channels
|
||||
|
||||
|
|
|
@ -46,6 +46,11 @@ class GenericStandalone(StandaloneBase):
|
|||
phy = ttl_simple.Output(sfp_ctl.led)
|
||||
self.submodules += phy
|
||||
self.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
if hw_rev == "v2.0":
|
||||
for i in (1, 2):
|
||||
phy = ttl_simple.Output(self.platform.request("user_led", i))
|
||||
self.submodules += 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)
|
||||
|
|
Loading…
Reference in New Issue