From bf46f9a7111452251fae34166885b7e42692e6d8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 20 Mar 2018 16:58:09 +0000 Subject: [PATCH] add uart interface --- src/interface_decl.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) + -- 2.30.2