-
Notifications
You must be signed in to change notification settings - Fork 986
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
[U(S)ART] hardware flow control support #1634
Conversation
void setRts(_rts); void setCts(_cts); void setRtsCts(_rts, _cts); These APIs accept either uint32_t pin number or PinName.
ScreenshotsCTS controlThe external devices's RTS signal (STM32's CTS input) rises every 4 characters, and the STM32 stops transmitting. (460800bps) RTS controlDisable the STM32's RX interrupt every 10 character reception, and the RTS signal keeps HIGH while stopping receiving. (460800bps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akasona, thanks for this Pull Request.
Few inlines comments, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #394 |
Summary
Add hardware flow control configuration APIs for U(S)ART. (list item of #1418)
You can enable flow control on RTS/CTS separately, or enable both.
These APIs accept either uint32_t pin number or PinName.
Validation