stm32-rs / stm32f4xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F4 family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support half-duplex serial

llamington opened this issue · comments

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.

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.