connecting qspi to pinmux
[pinmux.git] / src / spec / ifaceprint.py
index f8b95d2593ec15544ca8f7a8b8500b2412e6546c..e15d102192dbd4ab9c99165b704a2c35bc039ee0 100644 (file)
@@ -136,9 +136,9 @@ def check_functions(of, title, bankspec, fns, pins, required, eint, pwm,
                 continue
             for k in pins.fnspec.keys():
                 if fname.startswith(k):
-                    fk = pins.fnspec[k].keys()
+                    fk = list(pins.fnspec[k].keys())
                     fn = pins.fnspec[k]
-                    fn = fn[list(fn.keys())[0]]
+                    fn = fn[fk[0]]
                     #print fname, fn, dir(fn)
                     if count == 100000:
                         count = len(fn.pingroup)
@@ -167,8 +167,8 @@ def check_functions(of, title, bankspec, fns, pins, required, eint, pwm,
             of.write("* %s %d %s%d/%d\n" % (fname, pin_, bank, pin, mux))
 
         if removedcount != count:
-            print ("not all found", name, removedcount, count, title, found, \
-                    fns[fname])
+            print ("not all found", name, removedcount, count, title, found,
+                   fns[fname])
             print ("pins found", pinfound)
 
         # fnidx.sort(fnsort)