diff options
| author | whitequark <whitequark@whitequark.org> | 2019-09-23 08:07:37 +0000 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2019-09-23 08:07:37 +0000 |
| commit | dd87f472af92a73d18b3ef363603f20bd071306e (patch) | |
| tree | 1f55589430c96914fff1a0ac95308c8451d1f27e /nmigen_boards/icestick.py | |
| parent | cb0c2cd8595dab6dd3aa0c219a405e5f56880412 (diff) | |
[breaking-change] Factor out "led", "button" and "switch" resources.
These resources were renamed as:
* user_led → led
* user_btn → button
* user_sw → switch
Fixes #13.
Diffstat (limited to 'nmigen_boards/icestick.py')
| -rw-r--r-- | nmigen_boards/icestick.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nmigen_boards/icestick.py b/nmigen_boards/icestick.py index bbcad5e..99302e7 100644 --- a/nmigen_boards/icestick.py +++ b/nmigen_boards/icestick.py @@ -18,11 +18,7 @@ class ICEStickPlatform(LatticeICE40Platform): Resource("clk12", 0, Pins("21", dir="i"), Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")), - Resource("user_led", 0, Pins("99", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), - Resource("user_led", 1, Pins("98", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), - Resource("user_led", 2, Pins("97", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), - Resource("user_led", 3, Pins("96", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), - Resource("user_led", 4, Pins("95", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), + *LEDResources(pins="99 98 97 96 95", attrs=Attrs(IO_STANDARD="SB_LVCMOS")), UARTResource(0, rx="9", tx="8", rts="7", cts="4", dtr="3", dsr="2", dcd="1", |
