add scl interface spec
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 20 Mar 2018 16:55:06 +0000 (16:55 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 20 Mar 2018 16:55:06 +0000 (16:55 +0000)
src/interface_decl.py

index 8e2066846ceed87138c3aef8b1852c8e6e3cbbe7..f1a3b4efa9f2d7763fcfb6484dd4e76ac178ab2e 100644 (file)
@@ -182,3 +182,11 @@ if __name__ == '__main__':
     print sd
     print
     assert pinmunge(str(sd)) == pinmunge(sdinterface_decl)
+
+    twi = Interface([{'name': 'sda{0}', 'outen': True},
+                     {'name': 'scl{0}', 'outen': True},
+                     ])
+    print twi
+    print
+    assert pinmunge(str(twi)) == pinmunge(twiinterface_decl)
+