From 36be877ba3dc102150c59fb3ad58adf28172f4b8 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 17 Jul 2021 08:01:20 +0200 Subject: [PATCH] stm32/dma: only set TRBUFF in DMAv1 (H7) --- embassy-stm32/src/dma/dma.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-stm32/src/dma/dma.rs b/embassy-stm32/src/dma/dma.rs index 75fc1403..591279ef 100644 --- a/embassy-stm32/src/dma/dma.rs +++ b/embassy-stm32/src/dma/dma.rs @@ -84,6 +84,7 @@ pub(crate) async unsafe fn do_transfer( w.set_pinc(vals::Inc::FIXED); w.set_teie(true); w.set_tcie(true); + #[cfg(dma_v1)] w.set_trbuff(true); w.set_en(true);