From 9342497132a9072b8247f7927d31c0e4382aeb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Kr=C3=B6ger?= Date: Thu, 29 Jul 2021 17:38:40 +0200 Subject: [PATCH] stm32wl55: Use `Dbgmcu::enable_all` --- embassy-stm32/src/rcc/wl5x/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/embassy-stm32/src/rcc/wl5x/mod.rs b/embassy-stm32/src/rcc/wl5x/mod.rs index 6a4f99e0..b91adb20 100644 --- a/embassy-stm32/src/rcc/wl5x/mod.rs +++ b/embassy-stm32/src/rcc/wl5x/mod.rs @@ -122,11 +122,7 @@ impl<'d> Rcc<'d> { unsafe { pac::RCC.ahb1enr().modify(|w| w.set_dma1en(enable_dma)); - pac::DBGMCU.cr().modify(|w| { - w.set_dbg_sleep(true); - w.set_dbg_standby(true); - w.set_dbg_stop(true); - }); + Dbgmcu::enable_all(); } } }