projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4534b6
)
feat(stage2): Found the dict needed for IOTypes
author
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Sat, 1 Oct 2022 11:30:52 +0000
(11:30 +0000)
committer
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Sat, 1 Oct 2022 11:30:52 +0000
(11:30 +0000)
src/stage2.py
patch
|
blob
|
history
diff --git
a/src/stage2.py
b/src/stage2.py
index 1cf5481fc75575f7300697b40f20fabcf7889da3..1669149e22bed1776e7aa7c9ace5772ca0a607f4 100644
(file)
--- a/
src/stage2.py
+++ b/
src/stage2.py
@@
-422,7
+422,7
@@
if __name__ == '__main__':
#testspec = PinSpec()
pinbanks = {
'A': (4, 4), # bankname: (num of pins, muxwidth)
#testspec = PinSpec()
pinbanks = {
'A': (4, 4), # bankname: (num of pins, muxwidth)
-
#'B': (18
, 4),
+
'B': (2
, 4),
#'C': (24, 1),
#'D': (93, 1),
}
#'C': (24, 1),
#'D': (93, 1),
}
@@
-437,6
+437,7
@@
if __name__ == '__main__':
ps = PinSpec(pinbanks, fixedpins, function_names)
# Unit number, (Bank, pin #), mux, start, num # pins
ps.gpio("", ('A', 0), 0, 0, 4)
ps = PinSpec(pinbanks, fixedpins, function_names)
# Unit number, (Bank, pin #), mux, start, num # pins
ps.gpio("", ('A', 0), 0, 0, 4)
+ ps.gpio("2", ('B', 0), 0, 0, 2)
ps.uart("0", ('A', 0), 1)
ps.i2c("0", ('A', 0), 2)
ps.uart("0", ('A', 0), 1)
ps.i2c("0", ('A', 0), 2)
@@
-476,5
+477,5
@@
if __name__ == '__main__':
name, assigned_bank = pdata[mux]
print("Mux %d : %s" % (mux, name))
name, assigned_bank = pdata[mux]
print("Mux %d : %s" % (mux, name))
-
-
+ print(ps.items())
+ print(ps.byspec())