Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3/3] DMA Move API: Introduce DMA buffer objects #1856

Merged
merged 15 commits into from
Aug 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tx/rx booleans
Dominaezzz committed Jul 30, 2024
commit 5abcd3efe6545de700f6084000b993d9b5e2bc26
4 changes: 2 additions & 2 deletions esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
@@ -1324,7 +1324,7 @@ pub mod dma {
return Err((e, self, buffer));
}

Ok(SpiDmaTransfer::new(self, buffer, false, true))
Ok(SpiDmaTransfer::new(self, buffer, bytes_to_read > 0, false))
}

#[allow(clippy::type_complexity)]
@@ -1401,7 +1401,7 @@ pub mod dma {
return Err((e, self, buffer));
}

Ok(SpiDmaTransfer::new(self, buffer, true, false))
Ok(SpiDmaTransfer::new(self, buffer, false, bytes_to_write > 0))
}
}

Loading