rp: let SPI RX overflow during async write

This commit is contained in:
Alex Martens
2022-09-18 12:23:17 -07:00
committed by Mathias
parent c14527486d
commit 4322293f63
2 changed files with 17 additions and 37 deletions

View File

@ -56,25 +56,6 @@ pub unsafe fn read<'a, C: Channel, W: Word>(
)
}
pub unsafe fn read_repeated<'a, C: Channel, W: Word>(
ch: impl Peripheral<P = C> + 'a,
from: *const W,
len: usize,
dreq: u8,
) -> Transfer<'a, C> {
let mut dummy: u32 = 0;
copy_inner(
ch,
from as *const u32,
&mut dummy as *mut u32,
len,
W::size(),
false,
false,
dreq,
)
}
pub unsafe fn write<'a, C: Channel, W: Word>(
ch: impl Peripheral<P = C> + 'a,
from: *const [W],