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 773836d commit 05d2dd9Copy full SHA for 05d2dd9
src/spi.rs
@@ -353,6 +353,7 @@ where
353
unsafe { ptr::read_volatile(&self.spi.dr as *const _ as *const FrameSize) }
354
}
355
356
+ #[allow(invalid_reference_casting)]
357
fn write_data_reg(&mut self, data: FrameSize) {
358
// NOTE(write_volatile) see note above
359
unsafe { ptr::write_volatile(&self.spi.dr as *const _ as *mut FrameSize, data) }
0 commit comments