diff options
| author | J. Neuschäfer <j.ne@posteo.net> | 2023-07-25 16:39:14 +0200 |
|---|---|---|
| committer | Catherine <whitequark@whitequark.org> | 2025-02-07 00:51:32 +0000 |
| commit | 6e01882eefd62cf19f5740406144632fe2d21947 (patch) | |
| tree | d14befd2bccb6d06268dbb3449e22f47b685de08 | |
| parent | 7be79b613f8e00d7221f00a946a55f11b51685b0 (diff) | |
machxo2_breakout: Make UART resource optional
| -rw-r--r-- | amaranth_boards/machxo2_breakout.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/amaranth_boards/machxo2_breakout.py b/amaranth_boards/machxo2_breakout.py index b90f1a9..83de7a5 100644 --- a/amaranth_boards/machxo2_breakout.py +++ b/amaranth_boards/machxo2_breakout.py @@ -18,10 +18,12 @@ class MachXO2_7000HE_BreakoutPlatform(LatticeMachXO2Platform): speed = "4" resources = [ *LEDResources(pins="97 98 99 100 104 105 106 107", invert=True), - - # Connectable to the FTDI UART but disconnected by default. Populate R14-R21 to connect. - UARTResource(0, rx="73", tx="74", rts="75", cts="76", dtr="81", dsr="77", dcd="78", role="dte"), ] + + # Connectable to the FTDI UART but disconnected by default. Populate R14-R21 to connect. + # Use `p.add_resource(p.serial)` to add the resource. + serial = UARTResource(0, rx="73", tx="74", rts="75", cts="76", dtr="81", dsr="77", dcd="78", role="dte") + connectors = [ Connector("j", 2, # J2 "- - " |
