From b2af7361c1863c4b6699b21c4b06935edd3671b8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 28 Jun 2019 03:33:41 +0000 Subject: [breaking-change] Factor out "serial" resource and rename to "uart". Also, add missing pullups where appropriate. --- nmigen_boards/versa_ecp5.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'nmigen_boards/versa_ecp5.py') diff --git a/nmigen_boards/versa_ecp5.py b/nmigen_boards/versa_ecp5.py index 9216849..6d1c41a 100644 --- a/nmigen_boards/versa_ecp5.py +++ b/nmigen_boards/versa_ecp5.py @@ -57,15 +57,14 @@ class VersaECP5Platform(LatticeECP5Platform): Resource("user_sw", 6, PinsN("K19", dir="i"), Attrs(IO_TYPE="LVCMOS25")), Resource("user_sw", 7, PinsN("K20", dir="i"), Attrs(IO_TYPE="LVCMOS25")), - Resource("serial", 0, - Subsignal("rx", Pins("C11", dir="i")), - Subsignal("tx", Pins("A11", dir="o")), - Attrs(IO_TYPE="LVCMOS33", PULLMODE="UP") + UARTResource(0, + rx="C11", tx="A11", + attrs=Attrs(IO_TYPE="LVCMOS33", PULLMODE="UP") ), *SPIFlashResources(0, cs="R2", clk="U3", miso="W2", mosi="V2", wp="Y2", hold="W1", - attrs=Attrs(IO_STANDARD="SB_LVCMOS33") + attrs=Attrs(IO_STANDARD="LVCMOS33") ), Resource("eth_clk125", 0, Pins("L19"), -- cgit v1.2.3