def request(self, *args, **kwargs): if "serial" in args: print( "two 0 Ω resistors shoud be populated on R34 and R35 and " "the FT2232H should be configured to UART with virtual COM on " "port B") if "ext_clk50" in args: print("an oscillator must be populated on X5") return LatticePlatform.request(self, *args, **kwargs)
def request(self, *args, **kwargs): import time if "serial" in args: msg = "FT2232H will be used as serial, make sure that:\n" msg += " -the hardware has been modified: R22 and R23 should be removed, two 0 Ω resistors shoud be populated on R34 and R35.\n" msg += " -the chip is configured as UART with virtual COM on port B (With FTProg or https://github.com/trabucayre/fixFT2232_ecp5evn)." print(msg) time.sleep(2) if "ext_clk50" in args: print("An oscillator must be populated on X5.") time.sleep(2) return LatticePlatform.request(self, *args, **kwargs)
def request(self, *args, **kwargs): return LatticePlatform.request(self, *args, **kwargs)