Skip to content

Commit 6e01882

Browse files
neuschaeferwhitequark
authored andcommitted
machxo2_breakout: Make UART resource optional
1 parent 7be79b6 commit 6e01882

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

amaranth_boards/machxo2_breakout.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ class MachXO2_7000HE_BreakoutPlatform(LatticeMachXO2Platform):
1818
speed = "4"
1919
resources = [
2020
*LEDResources(pins="97 98 99 100 104 105 106 107", invert=True),
21-
22-
# Connectable to the FTDI UART but disconnected by default. Populate R14-R21 to connect.
23-
UARTResource(0, rx="73", tx="74", rts="75", cts="76", dtr="81", dsr="77", dcd="78", role="dte"),
2421
]
22+
23+
# Connectable to the FTDI UART but disconnected by default. Populate R14-R21 to connect.
24+
# Use `p.add_resource(p.serial)` to add the resource.
25+
serial = UARTResource(0, rx="73", tx="74", rts="75", cts="76", dtr="81", dsr="77", dcd="78", role="dte")
26+
2527
connectors = [
2628
Connector("j", 2, # J2
2729
"- - "

0 commit comments

Comments
 (0)