From 5d2f40b337da8bd6af93425d8a1dcc9229fe1f6d Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 4 Jan 2022 11:20:37 +0100 Subject: [PATCH] stm32wl/rcc: remove unneded gpio enables in RCC. These are already done by gpio::init(). --- embassy-stm32/src/rcc/wl5x/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/embassy-stm32/src/rcc/wl5x/mod.rs b/embassy-stm32/src/rcc/wl5x/mod.rs index 1b7bfb09..edf603ee 100644 --- a/embassy-stm32/src/rcc/wl5x/mod.rs +++ b/embassy-stm32/src/rcc/wl5x/mod.rs @@ -231,13 +231,6 @@ impl RccExt for RCC { pub unsafe fn init(config: Config) { let r = ::steal(); - let rcc = pac::RCC; - rcc.ahb2enr().write(|w| { - w.set_gpioaen(true); - w.set_gpioben(true); - w.set_gpiocen(true); - w.set_gpiohen(true); - }); let clocks = r.freeze(config); set_freqs(clocks); }