diff --git a/examples/mdma.rs b/examples/mdma.rs index 01d3a660..4d176461 100644 --- a/examples/mdma.rs +++ b/examples/mdma.rs @@ -195,7 +195,9 @@ fn main() -> ! { Transfer::init_master( streams.1, MemoryToMemory::new(), - unsafe { mem::transmute::<&mut [u8], &mut [u8]>(&mut target_buffer[..]) }, // Dest: TCM (stack) + unsafe { + mem::transmute::<&mut [u8], &mut [u8]>(&mut target_buffer[..]) + }, // Dest: TCM (stack) Some(source_buffer), // Source: TCM (stack) config, ) diff --git a/examples/qspi_mdma.rs b/examples/qspi_mdma.rs index 549f63d7..a7dd6dd4 100644 --- a/examples/qspi_mdma.rs +++ b/examples/qspi_mdma.rs @@ -108,8 +108,10 @@ fn main() -> ! { _, > = Transfer::init_master( streams.0, - qspi, // Dest: QSPI - unsafe { mem::transmute(&mut source_buffer) }, // Source: TCM (stack) + qspi, // Dest: QSPI + unsafe { + mem::transmute::<&mut [u8; 80], &mut [u8; 80]>(&mut source_buffer) + }, // Source: TCM (stack) None, config, );