from spec.interfaces import Pinouts
from spec.ifaceprint import display, display_fns, check_functions
-from spec.ifaceprint import display_fixed
+from spec.ifaceprint import display_fixed, python_dict_fns
from collections import OrderedDict
bankspec = OrderedDict()
self.offs = 0
pkeys = self.pinbanks.keys()
- print self.pinbanks
+ print (self.pinbanks)
for kn in pkeys:
bankspec[kn] = self.offs
self.offs += self.pinbanks[kn]
self.scenarios.append((name, needed, eint, pwm, descriptions))
+ def pywrite(self, pyf, pinmap):
+ return python_dict_fns(pyf, pinmap, self, self.function_names)
+
def write(self, of):
+
of.write("""# Pinouts (PinMux)
auto-generated by [[pinouts.py]]
of.write("""# Reference Datasheets
datasheets and pinout links
+
* <http://datasheets.chipdb.org/AMD/8018x/80186/amd-80186.pdf>
* <http://hands.com/~lkcl/eoma/shenzen/frida/FRD144A2701.pdf>
* <http://pinouts.ru/Memory/sdcard_pinout.shtml>