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 ed40e41 commit 0d609fbCopy full SHA for 0d609fb
nrf-hal-common/src/i2s.rs
@@ -313,11 +313,11 @@ impl I2S {
313
314
/// Sets the size (in 32bit words) of the receive and transmit buffers.
315
#[inline(always)]
316
- pub fn set_buffersize(&self, n_32bit: u32) -> Result<(), Error> {
+ pub unsafe fn set_buffersize(&self, n_32bit: u32) -> Result<(), Error> {
317
if n_32bit > MAX_DMA_MAXCNT {
318
return Err(Error::BufferTooLong);
319
}
320
- self.i2s.rxtxd.maxcnt.write(|w| unsafe { w.bits(n_32bit) });
+ self.i2s.rxtxd.maxcnt.write(|w| w.bits(n_32bit));
321
Ok(())
322
323
0 commit comments