stm32wl/rcc: remove unneded gpio enables in RCC.

These are already done by gpio::init().
This commit is contained in:
Dario Nieuwenhuis 2022-01-04 11:20:37 +01:00
parent cdc66e110f
commit 5d2f40b337

View file

@ -231,13 +231,6 @@ impl RccExt for RCC {
pub unsafe fn init(config: Config) { pub unsafe fn init(config: Config) {
let r = <peripherals::RCC as embassy::util::Steal>::steal(); let r = <peripherals::RCC as embassy::util::Steal>::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); let clocks = r.freeze(config);
set_freqs(clocks); set_freqs(clocks);
} }