forked from M-Labs/artiq
1
0
Fork 0

kasli: control SFP1 and SFP2 LEDs in DRTIO satellite to match master

This commit is contained in:
Sebastien Bourdeauducq 2018-02-27 23:18:18 +08:00
parent 5d81877b34
commit 386aa75aaa
1 changed files with 4 additions and 3 deletions

View File

@ -465,7 +465,8 @@ class Satellite(BaseSoC):
phy = ttl_simple.Output(platform.request("user_led", 0))
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy))
phy = ttl_simple.Output(platform.request("sfp_ctl", 1).led)
for i in range(1, 3):
phy = ttl_simple.Output(platform.request("sfp_ctl", i).led)
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy))