From 959aecf6aca7649fbca8e2025358819791d0c41d Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Tue, 26 Oct 2021 14:01:39 -0400 Subject: [PATCH] Enable the DMAMUX clocks. --- embassy-stm32/src/dma/dmamux.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/embassy-stm32/src/dma/dmamux.rs b/embassy-stm32/src/dma/dmamux.rs index 718859a44..ef84f1269 100644 --- a/embassy-stm32/src/dma/dmamux.rs +++ b/embassy-stm32/src/dma/dmamux.rs @@ -47,5 +47,13 @@ pac::dma_channels! { }; } +use crate::rcc::sealed::RccPeripheral; + /// safety: must be called only once -pub(crate) unsafe fn init() {} +pub(crate) unsafe fn init() { + pac::peripherals! { + (dmamux, $peri:ident) => { + crate::peripherals::$peri::enable(); + }; + } +}