From 6e01882eefd62cf19f5740406144632fe2d21947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Tue, 25 Jul 2023 16:39:14 +0200 Subject: machxo2_breakout: Make UART resource optional --- amaranth_boards/machxo2_breakout.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'amaranth_boards') 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 "- - " -- cgit v1.2.3