Skip to content

Commit

Permalink
feat: Update dma_extmem2mem example
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Sep 4, 2024
1 parent 4df7911 commit 592ddbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/src/bin/dma_extmem2mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn main() -> ! {
}

info!(" ext2int: Starting transfer of {} bytes", DATA_SIZE);
match mem2mem.start_transfer(&extram_buffer, &mut intram_buffer) {
match mem2mem.start_transfer(&mut intram_buffer, &extram_buffer) {
Ok(dma_wait) => {
info!("Transfer started");
dma_wait.wait().unwrap();
Expand Down Expand Up @@ -122,7 +122,7 @@ fn main() -> ! {
}

info!(" int2ext: Starting transfer of {} bytes", DATA_SIZE);
match mem2mem.start_transfer(&intram_buffer, &mut extram_buffer) {
match mem2mem.start_transfer(&mut extram_buffer, &intram_buffer) {
Ok(dma_wait) => {
info!("Transfer started");
dma_wait.wait().unwrap();
Expand Down

0 comments on commit 592ddbe

Please sign in to comment.