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 827e09c..5dababc 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]