-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add halfduplex to serial::config::Config and example #408
Conversation
Thanks for the PR! This looks really nice and I appreciate the explaination of the setup in the example. In the existing HAL it was already possible to configure synchronous mode (3 wires!) by passing 3 pins during the initialisation. That then sets the let mut usart6 = dp
.USART6
.serial((usart6txpin, usart6rxpin, usart6clk), ...); According to the reference manual the |
The CI should now pass bors try |
I would like to have this PR merged for the next release, so at some point I will make the change I described in my earlier comment. @dsmcfarl please let me know if that's a problem or you would prefer something else! |
This allows the USART's to be used with serial devices that operate in a half-duplex mode (transmit and receive on one wire). An example was also added (serial-halfduplex) and has been tested with a NUCLEO-H723ZG board. It has also been tested with a Frysky RX4R RC receiver Smart Port interface.
Updated and rebased onto master |
bors r+ |
Build succeeded:
|
Just saw this and see you merged it. Looks great thanks!
…On Thu, Feb 23, 2023 at 3:11 PM Richard Meadows ***@***.***> wrote:
I would like to have this PR merged for the next release, so at some point
I will make the change I described in my earlier comment. @dsmcfarl
<https://github.com/dsmcfarl> please let me know if that's a problem or
you would prefer something else!
—
Reply to this email directly, view it on GitHub
<#408 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASLPDUBMSYL5SZIBJAPXR3WY7G7VANCNFSM6AAAAAATOJ2WEQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This allows the USART's to be used with serial devices that operate in a half-duplex mode (transmit and receive on one wire). An example was also added (serial-halfduplex) and has been tested with a NUCLEO-H723ZG board. It has also been tested with a Frysky RX4R RC receiver Smart Port interface.