aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-01-04 11:20:37 +0100
committerDario Nieuwenhuis <[email protected]>2022-01-04 13:31:30 +0100
commit5d2f40b337da8bd6af93425d8a1dcc9229fe1f6d (patch)
treede280a22333b2db6f490eb5376046bfc89f50d19
parentcdc66e110f084a27b2bae61d0611c884fcc5f845 (diff)
stm32wl/rcc: remove unneded gpio enables in RCC.
These are already done by gpio::init().
-rw-r--r--embassy-stm32/src/rcc/wl5x/mod.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/embassy-stm32/src/rcc/wl5x/mod.rs b/embassy-stm32/src/rcc/wl5x/mod.rs
index 1b7bfb09d..edf603ee6 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 {
231 231
232pub unsafe fn init(config: Config) { 232pub unsafe fn init(config: Config) {
233 let r = <peripherals::RCC as embassy::util::Steal>::steal(); 233 let r = <peripherals::RCC as embassy::util::Steal>::steal();
234 let rcc = pac::RCC;
235 rcc.ahb2enr().write(|w| {
236 w.set_gpioaen(true);
237 w.set_gpioben(true);
238 w.set_gpiocen(true);
239 w.set_gpiohen(true);
240 });
241 let clocks = r.freeze(config); 234 let clocks = r.freeze(config);
242 set_freqs(clocks); 235 set_freqs(clocks);
243} 236}