Skip to content

Commit

Permalink
Fix broken async SPI transfers.
Browse files Browse the repository at this point in the history
SPI-DMA still broken, especially the transfer_dma method.
  • Loading branch information
jbeaurivage committed Nov 13, 2022
1 parent dfb1d1b commit 207b70d
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 188 deletions.
1 change: 1 addition & 0 deletions hal/src/sercom/async_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ unsafe impl<T: Beat> Buffer for ImmutableSlice<T> {
/// make async SERCOM-DMA transfers work. Should not be used outside of this
/// crate.
#[doc(hidden)]
#[derive(Clone)]
pub struct SercomPtr<T: Beat>(pub(in super::super) *mut T);

unsafe impl<T: Beat> Buffer for SercomPtr<T> {
Expand Down
Loading

0 comments on commit 207b70d

Please sign in to comment.