From d10e45a7cfa5964bb7d6b8fb53a1a4ba9ec74633 Mon Sep 17 00:00:00 2001 From: Dominic Fischer Date: Thu, 25 Jul 2024 01:59:01 +0100 Subject: [PATCH] [3/3] DMA Move API: Introduce DMA buffer objects --- esp-hal/src/dma/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp-hal/src/dma/mod.rs b/esp-hal/src/dma/mod.rs index 890b5af8bbd..fe27dcee654 100644 --- a/esp-hal/src/dma/mod.rs +++ b/esp-hal/src/dma/mod.rs @@ -2341,6 +2341,7 @@ impl<'a, I> DmaTransferTxRx<'a, I> where I: dma_private::DmaSupportTx + dma_private::DmaSupportRx, { + #[allow(dead_code)] pub(crate) fn new(instance: &'a mut I) -> Self { Self { instance } } @@ -2562,6 +2563,7 @@ pub(crate) mod asynch { Self { rx, _a: () } } + #[allow(dead_code)] // Dead on the C2 pub fn rx(&mut self) -> &mut RX { self.rx }