Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support half-duplex serial #592

Open
llamington opened this issue Apr 2, 2023 · 5 comments
Open

Support half-duplex serial #592

llamington opened this issue Apr 2, 2023 · 5 comments

Comments

@llamington
Copy link

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.

@burrbull
Copy link
Contributor

burrbull commented Apr 2, 2023

You mean both read and write on TX line?

@llamington
Copy link
Author

Yes that's correct

@burrbull
Copy link
Contributor

burrbull commented Apr 3, 2023

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.

@bluespider42
Copy link

@llamington Did you ever make any progress on this?

@llamington
Copy link
Author

@bluespider42 no, unfortunately I didn't (I ended up using the STM32HAL library in C)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants