for m in pinouts[k].keys():
muxsz = max(muxsz, m + 1)
+ # write out the mux...
with open(os.path.join(pth, 'pinmap.txt'), 'w') as g:
for k in pks:
res = [str(k)]
fname = ''
res.append(fname.lower())
g.write('\t'.join(res) + '\n')
+
+ # ... and the dedicated pins
+ with open(os.path.join(pth, 'fixedpins.txt'), 'w') as g:
+ for p in fixedpins:
+ p = map(str, p)
+ p = map(str.lower, p)
+ g.write('\t'.join(p) + '\n')
fkeys = fixed.keys()
fkeys.sort()
pin_ = offs
+ res = []
for pin, k in enumerate(fkeys):
print "## %s" % k
print
print
print "* %d: %d %s" % (pin_, pin, name),
linecount = 1
+ res.append((pin_, name))
+
prevname = name
pin_ += 1
if linecount != 0:
print
print
+
+ return res
}
- display_fixed(fixedpins, len(pinouts))
+ fixedpins = display_fixed(fixedpins, len(pinouts))
print "# Functions (PinMux)"
print