Make UART futures Send
This commit is contained in:
parent
75e5b39799
commit
051c6350ea
@ -106,8 +106,8 @@ impl<'d, T: Instance, TxDma> UartTx<'d, T, TxDma> {
|
||||
reg.set_dmat(true);
|
||||
});
|
||||
}
|
||||
let dst = tdr(T::regs());
|
||||
crate::dma::write(ch, request, buffer, dst).await;
|
||||
let transfer = crate::dma::write(ch, request, buffer, tdr(T::regs()));
|
||||
transfer.await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@ -150,9 +150,8 @@ impl<'d, T: Instance, RxDma> UartRx<'d, T, RxDma> {
|
||||
reg.set_dmar(true);
|
||||
});
|
||||
}
|
||||
let r = T::regs();
|
||||
let src = rdr(r);
|
||||
crate::dma::read(ch, request, src, buffer).await;
|
||||
let transfer = crate::dma::read(ch, request, rdr(T::regs()), buffer);
|
||||
transfer.await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user