From: Luke Kenneth Casson Leighton Date: Tue, 20 Mar 2018 16:57:10 +0000 (+0000) Subject: add spi interface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fd6a0cd043b759a6cee2ed27b28a93d35033f47;p=pinmux.git add spi interface --- diff --git a/src/interface_decl.py b/src/interface_decl.py index f1a3b4e..9b420e9 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -190,3 +190,12 @@ if __name__ == '__main__': print assert pinmunge(str(twi)) == pinmunge(twiinterface_decl) + spi = Interface([{'name': 'sclk_{0}', 'action': True}, + {'name': 'mosi_{0}', 'action': True}, + {'name': 'ss_{0}', 'action': True}, + {'name': 'miso_{0}'}, + ]) + print spi + print + assert pinmunge(str(spi)) == pinmunge(spiinterface_decl) +