aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/tinyfpga_bx.py
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2019-09-23 08:07:37 +0000
committerwhitequark <whitequark@whitequark.org>2019-09-23 08:07:37 +0000
commitdd87f472af92a73d18b3ef363603f20bd071306e (patch)
tree1f55589430c96914fff1a0ac95308c8451d1f27e /nmigen_boards/tinyfpga_bx.py
parentcb0c2cd8595dab6dd3aa0c219a405e5f56880412 (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/tinyfpga_bx.py')
-rw-r--r--nmigen_boards/tinyfpga_bx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nmigen_boards/tinyfpga_bx.py b/nmigen_boards/tinyfpga_bx.py
index 4e136a7..c563565 100644
--- a/nmigen_boards/tinyfpga_bx.py
+++ b/nmigen_boards/tinyfpga_bx.py
@@ -17,7 +17,7 @@ class TinyFPGABXPlatform(LatticeICE40Platform):
Resource("clk16", 0, Pins("B2", dir="i"),
Clock(16e6), Attrs(IO_STANDARD="SB_LVCMOS")),
- Resource("user_led", 0, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+ *LEDResources(pins="B3", attrs=Attrs(IO_STANDARD="SB_LVCMOS")),
Resource("usb", 0,
Subsignal("d_p", Pins("B4", dir="io")),