From: Luke Kenneth Casson Leighton Date: Tue, 20 Mar 2018 16:58:09 +0000 (+0000) Subject: add uart interface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf46f9a7111452251fae34166885b7e42692e6d8;p=pinmux.git add uart interface --- diff --git a/src/interface_decl.py b/src/interface_decl.py index 9b420e9..9e08259 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -199,3 +199,10 @@ if __name__ == '__main__': print assert pinmunge(str(spi)) == pinmunge(spiinterface_decl) + uart = Interface([{'name': 'tx_{0}', 'action': True}, + {'name': 'rx_{0}'}, + ]) + print uart + print + assert pinmunge(str(uart)) == pinmunge(uartinterface_decl) +