From 6e0cc9d2c9c085912d5350f1f88aaa68af1e25d8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 3 Jul 2019 09:54:39 +0000 Subject: [PATCH] dev.uart: fix typo. --- nmigen_boards/dev/uart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen_boards/dev/uart.py b/nmigen_boards/dev/uart.py index df03bd1..495dbcf 100644 --- a/nmigen_boards/dev/uart.py +++ b/nmigen_boards/dev/uart.py @@ -8,7 +8,7 @@ def UARTResource(number, *, rx, tx, rts=None, cts=None, dtr=None, dsr=None, dcd= attrs=None): io = [] io.append(Subsignal("rx", Pins(rx, dir="i"))) - io.append(Subsignal("tx", Pins(rx, dir="o"))) + io.append(Subsignal("tx", Pins(tx, dir="o"))) if rts is not None: io.append(Subsignal("rts", Pins(rts, dir="o"))) if cts is not None: @@ -32,7 +32,7 @@ def IrDAResource(number, *, rx, tx, en=None, sd=None, attrs=None): assert (en is not None) ^ (sd is not None) io = [] io.append(Subsignal("rx", Pins(rx, dir="i"))) - io.append(Subsignal("tx", Pins(rx, dir="o"))) + io.append(Subsignal("tx", Pins(tx, dir="o"))) if en is not None: io.append(Subsignal("en", Pins(en, dir="o"))) if sd is not None: -- 2.30.2