mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-18 09:41:45 +00:00
targets/simple: add try/except on leds.
This commit is contained in:
parent
7c6df67739
commit
f3ccd140c2
1 changed files with 7 additions and 4 deletions
|
|
@ -36,10 +36,13 @@ class BaseSoC(SoCCore):
|
||||||
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
|
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
|
||||||
|
|
||||||
# Leds -------------------------------------------------------------------------------------
|
# Leds -------------------------------------------------------------------------------------
|
||||||
self.submodules.leds = LedChaser(
|
try:
|
||||||
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")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Build --------------------------------------------------------------------------------------------
|
# Build --------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue