From d256cc8bd62f874df9c99809113c5ec87794f0b8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 25 Jan 2021 12:19:29 +0100 Subject: [PATCH] camlink_4k: disable leds when serial is used (since pin is shared). --- litex_boards/targets/camlink_4k.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/litex_boards/targets/camlink_4k.py b/litex_boards/targets/camlink_4k.py index 6bcee443..12233f58 100755 --- a/litex_boards/targets/camlink_4k.py +++ b/litex_boards/targets/camlink_4k.py @@ -104,10 +104,11 @@ class BaseSoC(SoCCore): ) # Leds ------------------------------------------------------------------------------------- - self.submodules.leds = LedChaser( - pads = platform.request_all("user_led"), - sys_clk_freq = sys_clk_freq) - self.add_csr("leds") + if platform.lookup_request("serial", loose=True) is None: # Disable leds when serial is used. + self.submodules.leds = LedChaser( + pads = platform.request_all("user_led"), + sys_clk_freq = sys_clk_freq) + self.add_csr("leds") # Build --------------------------------------------------------------------------------------------