We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b56040d commit 1ed311cCopy full SHA for 1ed311c
src/serial.rs
@@ -149,12 +149,18 @@ pub struct Rx<USART> {
149
usart: *const USART,
150
}
151
152
+// NOTE(unsafe) Required to allow protected shared access in handlers
153
+unsafe impl<USART> Send for Rx<USART> {}
154
+
155
/// Serial transmitter
156
pub struct Tx<USART> {
157
// This is ok, because the USART types only contains PhantomData
158
159
160
161
162
+unsafe impl<USART> Send for Tx<USART> {}
163
164
macro_rules! usart {
165
($($USART:ident: ($usart:ident, $usartXen:ident, $apbenr:ident),)+) => {
166
$(
0 commit comments