From 696a3b855255dd8c91ab782f5956b4c7ef492c9c Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Fri, 9 Jul 2021 09:12:11 -0400 Subject: [PATCH] Try to figure out h7cm's problem. --- embassy-stm32/src/bdma/v1.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/embassy-stm32/src/bdma/v1.rs b/embassy-stm32/src/bdma/v1.rs index 5d612367..4488e2e9 100644 --- a/embassy-stm32/src/bdma/v1.rs +++ b/embassy-stm32/src/bdma/v1.rs @@ -329,6 +329,15 @@ pac::peripherals! { }; } }; + // Because H7cm changes the naming + (bdma, BDMA) => { + impl_dma!(BDMA, 0); + pac::dma_channels! { + ($channel_peri:ident, DMA1, $channel_num:expr) => { + impl_dma_channel!($channel_peri, BDMA, 0, $channel_num); + }; + } + }; } pac::interrupts! {