icestick: fix UART flow control pins.
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 8 Jun 2020 21:24:46 +0000 (23:24 +0200)
committerwhitequark <whitequark@whitequark.org>
Thu, 11 Jun 2020 14:10:55 +0000 (14:10 +0000)
UART flow control pins match the signal names in the schematic, but
directions are reversed. Fix by setting role=dce.

nmigen_boards/icestick.py

index c6cdfe7f2ac444c4764494495506e741a7eed147..257e623d1ae930f7b3f92bdd495df90aad6670c5 100644 (file)
@@ -21,7 +21,8 @@ class ICEStickPlatform(LatticeICE40Platform):
 
         UARTResource(0,
             rx="9", tx="8", rts="7", cts="4", dtr="3", dsr="2", dcd="1",
-            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP=1)
+            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP=1),
+            role="dce"
         ),
 
         IrDAResource(0,