Skip to content

Commit

Permalink
targets/orangecrab: make usr_btn optional to fix compilation with rev…
Browse files Browse the repository at this point in the history
…ision 0.1.
  • Loading branch information
enjoy-digital committed Jan 8, 2021
1 parent ae5494d commit 0a7443d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions litex_boards/targets/orangecrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def __init__(self, platform, sys_clk_freq, with_usb_pll=False):

# Clk / Rst
clk48 = platform.request("clk48")
rst_n = platform.request("usr_btn")
rst_n = platform.request("usr_btn", loose=True)
if rst_n is None: rst_n = 1

# Power on reset
por_count = Signal(16, reset=2**16-1)
Expand Down Expand Up @@ -89,7 +90,8 @@ def __init__(self, platform, sys_clk_freq, with_usb_pll=False):

# Clk / Rst
clk48 = platform.request("clk48")
rst_n = platform.request("usr_btn")
rst_n = platform.request("usr_btn", loose=True)
if rst_n is None: rst_n = 1

# Power on reset
por_count = Signal(16, reset=2**16-1)
Expand Down

0 comments on commit 0a7443d

Please sign in to comment.