Auto-enable all GPIOs during init().

This commit is contained in:
Bob McWhirter
2021-07-22 14:38:45 -04:00
parent e91c04a673
commit 13873df30b
4 changed files with 37 additions and 33 deletions

View File

@ -71,22 +71,10 @@ fn main() -> ! {
.pll1_q_ck(48.mhz())
.freeze(pwrcfg, &pp.SYSCFG);
let pp = unsafe { pac::Peripherals::steal() };
unsafe {
Dbgmcu::enable_all();
}
pp.RCC.ahb4enr.modify(|_, w| {
w.gpioaen().set_bit();
w.gpioben().set_bit();
w.gpiocen().set_bit();
w.gpioden().set_bit();
w.gpioeen().set_bit();
w.gpiofen().set_bit();
w
});
unsafe { embassy::time::set_clock(&ZeroClock) };
let executor = EXECUTOR.put(Executor::new());