- Notifications
You must be signed in to change notification settings - Fork1k
[U(S)ART] hardware flow control support#1634
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
void setRts(_rts);void setCts(_cts);void setRtsCts(_rts, _cts);These APIs accept either uint32_t pin number or PinName.
akasona commentedJan 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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) |
ABOSTM left a comment
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
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ABOSTM left a comment
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
Uh oh!
There was an error while loading.Please reload this page.
fpistm commentedFeb 5, 2022
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