Enable SYSCFG clock in exti::init()

This commit is contained in:
Timo Kröger
2021-07-22 23:12:07 +02:00
committed by Dario Nieuwenhuis
parent ad7a1f1453
commit 06fb2a7a80
8 changed files with 6 additions and 39 deletions

View File

@ -17,7 +17,6 @@ use embassy_traits::gpio::{WaitForFallingEdge, WaitForRisingEdge};
use example_common::*;
use cortex_m_rt::entry;
use embassy_stm32::pac;
#[embassy::task]
async fn main_task() {
@ -42,14 +41,7 @@ static EXECUTOR: Forever<Executor> = Forever::new();
fn main() -> ! {
info!("Hello World!");
unsafe {
Dbgmcu::enable_all();
// EXTI clock
pac::RCC.apb2enr().modify(|w| {
w.set_syscfgen(true);
});
}
unsafe { Dbgmcu::enable_all() }
let executor = EXECUTOR.put(Executor::new());