[UCPD] Fix build for devices with GPDMA

Do not use a flag that is DMA/BDMA only, not required anyway
the transfer should run in the background nevertheless
This commit is contained in:
Timo Kröger 2024-03-08 19:26:49 +01:00 committed by Timo Kröger
parent ff8129a6a6
commit 99854ff840

View file

@ -269,18 +269,12 @@ impl<'d, T: Instance> PdPhy<'d, T> {
// Keep the DMA transfer alive so its drop code does not stop it right away. // Keep the DMA transfer alive so its drop code does not stop it right away.
let dma = unsafe { let dma = unsafe {
// Disable the DMA complete interrupt because the end of packet is
// signaled by the UCPD receiver. When the DMA buffer is too short
// DMA stops by itself and the overrun RXOVR flag of UCPD is set.
let mut transfer_options = TransferOptions::default();
transfer_options.complete_transfer_ir = false;
Transfer::new_read( Transfer::new_read(
&self.rx_dma_ch, &self.rx_dma_ch,
self.rx_dma_req, self.rx_dma_req,
r.rxdr().as_ptr() as *mut u8, r.rxdr().as_ptr() as *mut u8,
buf, buf,
transfer_options, TransferOptions::default(),
) )
}; };