aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32f4/src/bin')
-rw-r--r--examples/stm32f4/src/bin/button_exti.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/stm32f4/src/bin/button_exti.rs b/examples/stm32f4/src/bin/button_exti.rs
index 6c51095eb..bc48c2b12 100644
--- a/examples/stm32f4/src/bin/button_exti.rs
+++ b/examples/stm32f4/src/bin/button_exti.rs
@@ -17,7 +17,6 @@ use embassy_traits::gpio::{WaitForFallingEdge, WaitForRisingEdge};
17use example_common::*; 17use example_common::*;
18 18
19use cortex_m_rt::entry; 19use cortex_m_rt::entry;
20use embassy_stm32::pac;
21 20
22#[embassy::task] 21#[embassy::task]
23async fn main_task() { 22async fn main_task() {
@@ -42,14 +41,7 @@ static EXECUTOR: Forever<Executor> = Forever::new();
42fn main() -> ! { 41fn main() -> ! {
43 info!("Hello World!"); 42 info!("Hello World!");
44 43
45 unsafe { 44 unsafe { Dbgmcu::enable_all() }
46 Dbgmcu::enable_all();
47
48 // EXTI clock
49 pac::RCC.apb2enr().modify(|w| {
50 w.set_syscfgen(true);
51 });
52 }
53 45
54 let executor = EXECUTOR.put(Executor::new()); 46 let executor = EXECUTOR.put(Executor::new());
55 47