This commit is contained in:
Dion Dokter 2024-10-29 17:50:46 +01:00
parent 2d899a17e7
commit 9fdfe5e99b

View File

@ -369,7 +369,7 @@ impl<'d, T: Instance> Qspi<'d, T, Async> {
transfer.blocking_wait(); transfer.blocking_wait();
} }
/// Blocking read data, using DMA. /// Async read data, using DMA.
pub async fn read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig) { pub async fn read_dma(&mut self, buf: &mut [u8], transaction: TransferConfig) {
let transfer = self.start_read_transfer(transaction, buf); let transfer = self.start_read_transfer(transaction, buf);
transfer.await; transfer.await;