mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
blanks
This commit is contained in:
parent
0ac5872e76
commit
6bcae324bb
@ -18,7 +18,7 @@ def rs232_tx(tx, data, duration=T_9600):
|
||||
duration -- transmit bit duration
|
||||
|
||||
"""
|
||||
|
||||
|
||||
print "-- Transmitting %s --" % hex(data)
|
||||
print "TX: start bit"
|
||||
tx.next = 0
|
||||
@ -46,8 +46,6 @@ def rs232_rx(rx, data, duration=T_9600, timeout=MAX_TIMEOUT):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
||||
# wait on start bit until timeout
|
||||
yield negedge(rx), delay(timeout)
|
||||
if rx == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user