mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-20 09:52:57 +00:00
camlink_4k: disable leds when serial is used (since pin is shared).
This commit is contained in:
parent
1e1bec10c4
commit
d256cc8bd6
1 changed files with 5 additions and 4 deletions
|
|
@ -104,10 +104,11 @@ class BaseSoC(SoCCore):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Leds -------------------------------------------------------------------------------------
|
# Leds -------------------------------------------------------------------------------------
|
||||||
self.submodules.leds = LedChaser(
|
if platform.lookup_request("serial", loose=True) is None: # Disable leds when serial is used.
|
||||||
pads = platform.request_all("user_led"),
|
self.submodules.leds = LedChaser(
|
||||||
sys_clk_freq = sys_clk_freq)
|
pads = platform.request_all("user_led"),
|
||||||
self.add_csr("leds")
|
sys_clk_freq = sys_clk_freq)
|
||||||
|
self.add_csr("leds")
|
||||||
|
|
||||||
# Build --------------------------------------------------------------------------------------------
|
# Build --------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue