#!/usr/bin/env python
-from interfaces import jtag, uart, ulpi, uartfull, rgbttl, rgmii
-from interfaces import flexbus1, flexbus2, sdram1, sdram2, mcu8080
-from interfaces import eint, pwm, gpio, spi, i2c, emmc, sdmmc
-from interfaces import quadspi, i2s
-from interfaces import pinmerge, Pinouts
+from spec.interfaces import jtag, uart, ulpi, uartfull, rgbttl, rgmii
+from spec.interfaces import flexbus1, flexbus2, sdram1, sdram2, mcu8080
+from spec.interfaces import eint, pwm, gpio, spi, i2c, emmc, sdmmc
+from spec.interfaces import quadspi, i2s
+from spec.interfaces import pinmerge, Pinouts
-from ifaceprint import display, display_fns, check_functions
-from ifaceprint import display_fixed
+from spec.ifaceprint import display, display_fns, check_functions
+from spec.ifaceprint import display_fixed
def pinspec():
mmc2 = sdmmc(bankspec, "2", ('G', 28), "G", 2, start=2)
pinmerge(pinouts, mmc2)
- print "# Pinouts (PinMux)"
- print
- print "auto-generated by [[pinouts.py]]"
- print
- print "[[!toc ]]"
- print
- print pinouts.keys()
+ print ("""# Pinouts (PinMux)
+auto-generated by [[pinouts.py]]
+
+[[!toc ]]
+""")
display(pinouts)
- print
- print "# Pinouts (Fixed function)"
- print
+ print ("\n# Pinouts (Fixed function)\n")
fixedpins = {
'DDR3': [
fixedpins = display_fixed(fixedpins, len(pinouts))
- print "# Functions (PinMux)"
- print
- print "auto-generated by [[pinouts.py]]"
- print
+ print ("""# Functions (PinMux)
+
+auto-generated by [[pinouts.py]]
+""")
function_names = {'EINT': 'External Interrupt',
'FB': 'MC68k FlexBus',
iot, iot_eint, iot_pwm,
descriptions)
- print "# Reference Datasheets"
- print
- print "datasheets and pinout links"
- print
- print "* <http://datasheets.chipdb.org/AMD/8018x/80186/amd-80186.pdf>"
- print "* <http://hands.com/~lkcl/eoma/shenzen/frida/FRD144A2701.pdf>"
- print "* <http://pinouts.ru/Memory/sdcard_pinout.shtml>"
- print "* p8 <http://www.onfi.org/~/media/onfi/specs/onfi_2_0_gold.pdf?la=en>"
- print "* <https://www.heyrick.co.uk/blog/files/datasheets/dm9000aep.pdf>"
- print "* <http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4393.pdf>"
- print "* <https://www.nxp.com/docs/en/data-sheet/MCF54418.pdf>"
- print "* ULPI OTG PHY, ST <http://www.st.com/en/interfaces-and-transceivers/stulpi01a.html>"
- print "* ULPI OTG PHY, TI TUSB1210 <http://ti.com/product/TUSB1210/>"
+ print ("""# 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>
+* p8 <http://www.onfi.org/~/media/onfi/specs/onfi_2_0_gold.pdf?la=en>
+* <https://www.heyrick.co.uk/blog/files/datasheets/dm9000aep.pdf>
+* <http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4393.pdf>
+* <https://www.nxp.com/docs/en/data-sheet/MCF54418.pdf>
+* ULPI OTG PHY, ST <http://www.st.com/en/interfaces-and-transceivers/stulpi01a.html>
+* ULPI OTG PHY, TI TUSB1210 <http://ti.com/product/TUSB1210/>
+""")
return pinouts, bankspec, fixedpins