Open llamington opened 1 year ago
You mean both read and write on TX line?
Yes that's correct
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
.
@llamington Did you ever make any progress on this?
@bluespider42 no, unfortunately I didn't (I ended up using the STM32HAL library in C)
embassy-stm32 hal has a half-duplex uart.
PR currently in draft https://github.com/stm32-rs/stm32f4xx-hal/pull/781
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.