We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
And also Rx::{listen_idle, unlisten_idle} are unsafe.
Rx::{listen_idle, unlisten_idle}
They all use unsafe { (*USART::ptr()).cr1.modify(|_, w| w. ...) };.
unsafe { (*USART::ptr()).cr1.modify(|_, w| w. ...) };
It is non-atomic read-modify-write.
Tx and Rx can be used simultaneously from different execution threads. At the same time, they do not provide thread-safe access.
The text was updated successfully, but these errors were encountered:
technically we could rewrite those with bit-banding (bb::set)
bb::set
Sorry, something went wrong.
I think this will be the most optimal solution.
No branches or pull requests
And also
Rx::{listen_idle, unlisten_idle}
are unsafe.They all use
unsafe { (*USART::ptr()).cr1.modify(|_, w| w. ...) };
.It is non-atomic read-modify-write.
Tx and Rx can be used simultaneously from different execution threads.
At the same time, they do not provide thread-safe access.
The text was updated successfully, but these errors were encountered: