de44c4984fbe6a1dfb3b2f81ffdf151f2d62acb2
3 # This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
6 # Proof of Concept to use the crossover UART with lxterm over a bridge.
12 from litex
import RemoteClient
22 wb
.regs
.uart_xover_rxtx
.write(ord(r
))
26 if wb
.regs
.uart_xover_rxempty
.read() == 0:
27 r
= wb
.regs
.uart_xover_rxtx
.read()
28 os
.write(m
, bytes(chr(r
).encode("utf-8")))
31 print("LiteX Crossover UART created: {}".format(os
.ttyname(s
)))
33 pty2crossover_thread
= threading
.Thread(target
=pty2crossover
, args
=[m
])
34 pty2crossover_thread
.start()