From 6bbf450478286c0e8a00c3ae139793f8195ed537 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Tue, 2 Nov 2021 15:20:42 -0400 Subject: [PATCH] Allow unused macros temporarily until U5 supports DMA. --- embassy-stm32/src/usart/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs index a6955729d..d7925f9cf 100644 --- a/embassy-stm32/src/usart/mod.rs +++ b/embassy-stm32/src/usart/mod.rs @@ -215,6 +215,7 @@ crate::pac::peripheral_pins!( }; ); +#[allow(unused_macros)] macro_rules! impl_dma { ($inst:ident, {dmamux: $dmamux:ident}, $signal:ident, $request:expr) => { impl sealed::$signal for T @@ -242,6 +243,7 @@ macro_rules! impl_dma { }; } +#[allow(unused_macros)] crate::pac::peripheral_dma_channels! { ($peri:ident, usart, $kind:ident, RX, $channel:tt, $request:expr) => { impl_dma!($peri, $channel, RxDma, $request);