reference correct pads for sl180 pwm
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 6 Nov 2020 11:39:30 +0000 (11:39 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 6 Nov 2020 11:39:30 +0000 (11:39 +0000)
src/spec/ls180.py

index 827e09c5681ba4f2a68e9692459a2501a0143644..5dababced58628619f3e4e5c389c015d19855949 100644 (file)
@@ -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]