Support half-duplex serial
llamington opened this issue · comments
Bailey Lissington commented
Currently the serial
function requires a tuple of RX/TX pins. The reference manual states that "the TX and RX lines are internally connected", so only one pin would be required as an argument.
Zgarbul Andrey commented
You mean both read and write on TX line?
Bailey Lissington commented
Yes that's correct
Zgarbul Andrey commented
Not implemented yet.
It's better to create independent SerialHalfDuplex
structure for this with new::(pin: TX)
and its own methods.
As I understand it will be semantically incompatible with read
/write
from embedded-hal
.