From a8184d85f10b5b78ad3743e13c48c04d261ad818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Thu, 21 Nov 2024 10:54:19 +0100 Subject: [PATCH] Update LoopBuf as well --- esp-hal/src/dma/buffers.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/esp-hal/src/dma/buffers.rs b/esp-hal/src/dma/buffers.rs index 5df55847e04..a18be2c3dc5 100644 --- a/esp-hal/src/dma/buffers.rs +++ b/esp-hal/src/dma/buffers.rs @@ -1163,8 +1163,11 @@ unsafe impl DmaTxBuffer for DmaLoopBuf { fn prepare(&mut self) -> Preparation { Preparation { start: self.descriptor, - block_size: None, - is_burstable: true, + direction: TransferDirection::Out, + // TODO: support external memory access. + #[cfg(esp32s3)] + external_memory_block_size: None, + burst_transfer: BurstTransfer::Disabled, // The DMA must not check the owner bit, as it is never set. check_owner: Some(false), }