diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-07-17 08:01:20 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-07-17 08:01:20 +0200 |
| commit | 36be877ba3dc102150c59fb3ad58adf28172f4b8 (patch) | |
| tree | fdfd129a6b187d46d043566f31538761e5cd3cdf | |
| parent | 3655048e0f8238dc64425ff79d9cf951b9b1f340 (diff) | |
stm32/dma: only set TRBUFF in DMAv1 (H7)
| -rw-r--r-- | embassy-stm32/src/dma/dma.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/dma/dma.rs b/embassy-stm32/src/dma/dma.rs index 75fc14035..591279ef8 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( | |||
| 84 | w.set_pinc(vals::Inc::FIXED); | 84 | w.set_pinc(vals::Inc::FIXED); |
| 85 | w.set_teie(true); | 85 | w.set_teie(true); |
| 86 | w.set_tcie(true); | 86 | w.set_tcie(true); |
| 87 | #[cfg(dma_v1)] | ||
| 87 | w.set_trbuff(true); | 88 | w.set_trbuff(true); |
| 88 | w.set_en(true); | 89 | w.set_en(true); |
| 89 | 90 | ||
