stm32/dma: only set TRBUFF in DMAv1 (H7)

This commit is contained in:
Dario Nieuwenhuis 2021-07-17 08:01:20 +02:00
parent 3655048e0f
commit 36be877ba3

View file

@ -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);