Skip to content
Snippets Groups Projects
Commit f3ccd140 authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

targets/simple: add try/except on leds.

parent 7c6df677
No related branches found
No related tags found
No related merge requests found
...@@ -36,10 +36,13 @@ class BaseSoC(SoCCore): ...@@ -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 --------------------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment