projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3eac93
)
reference correct pads for sl180 pwm
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 6 Nov 2020 11:39:30 +0000
(11:39 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 6 Nov 2020 11:39:30 +0000
(11:39 +0000)
src/spec/ls180.py
patch
|
blob
|
history
diff --git
a/src/spec/ls180.py
b/src/spec/ls180.py
index 827e09c5681ba4f2a68e9692459a2501a0143644..5dababced58628619f3e4e5c389c015d19855949 100644
(file)
--- a/
src/spec/ls180.py
+++ b/
src/spec/ls180.py
@@
-306,7
+306,9
@@
def pinparse(psp, pinspec):
# PWM
elif name.startswith('pwm'):
name = name[:-4]
- pad = ['p_' + name, name, name]
+ i = name[3:]
+ name2 = 'pwm(%s)' % i
+ pad = ['p_' + name, name2, name2]
iopads.append(pad)
else:
pad = ['p_' + name, name, name]