[breaking-change] ice40_hx8k_b_evn: fix UART flow control pins.
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 8 Jun 2020 21:23:42 +0000 (23:23 +0200)
committerwhitequark <whitequark@whitequark.org>
Thu, 11 Jun 2020 14:10:55 +0000 (14:10 +0000)
RTS/CTS and DTR/DSR pairs have been swapped to work around the signal
direction in UARTResource. Un-reverse the signals, making the names
match the schematic. Fix the direction by setting role=dce.

Ref. http://www.latticesemi.com/view_document?document_id=50373

nmigen_boards/ice40_hx8k_b_evn.py

index 07c53485b0d7aa67ea170c53d6abc5e9037f31e1..48d5d9eacabfe9d3140eab4c4d9927eed9912dca 100644 (file)
@@ -23,8 +23,9 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
         ), # D2..D9
 
         UARTResource(0,
-            rx="B10", tx="B12", rts="A15", cts="B13", dtr="B14", dsr="A16", dcd="B15",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1)
+            rx="B10", tx="B12", rts="B13", cts="A15", dtr="A16", dsr="B14", dcd="B15",
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1),
+            role="dce"
         ),
 
         *SPIFlashResources(0,