projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86dc3f8
)
add scl interface spec
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 20 Mar 2018 16:55:06 +0000
(16:55 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 20 Mar 2018 16:55:06 +0000
(16:55 +0000)
src/interface_decl.py
patch
|
blob
|
history
diff --git
a/src/interface_decl.py
b/src/interface_decl.py
index 8e2066846ceed87138c3aef8b1852c8e6e3cbbe7..f1a3b4efa9f2d7763fcfb6484dd4e76ac178ab2e 100644
(file)
--- a/
src/interface_decl.py
+++ b/
src/interface_decl.py
@@
-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)
+