aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin/button_exti.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-08-19 23:32:22 +0200
committerDario Nieuwenhuis <[email protected]>2021-08-19 23:50:19 +0200
commit2c992f701049a9c0e72048b134c26fdb26f2692a (patch)
tree84aa74121769c9d9f3917cb493befd0fa14841cc /examples/stm32f4/src/bin/button_exti.rs
parent446d6c275c2c3e0dcc57dd69c3c1b1e7f6c92488 (diff)
stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.
Diffstat (limited to 'examples/stm32f4/src/bin/button_exti.rs')
-rw-r--r--examples/stm32f4/src/bin/button_exti.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/stm32f4/src/bin/button_exti.rs b/examples/stm32f4/src/bin/button_exti.rs
index ee43fa7d9..49c23ca3b 100644
--- a/examples/stm32f4/src/bin/button_exti.rs
+++ b/examples/stm32f4/src/bin/button_exti.rs
@@ -7,7 +7,6 @@
7#[path = "../example_common.rs"] 7#[path = "../example_common.rs"]
8mod example_common; 8mod example_common;
9use embassy::executor::Spawner; 9use embassy::executor::Spawner;
10use embassy_stm32::dbgmcu::Dbgmcu;
11use embassy_stm32::exti::ExtiInput; 10use embassy_stm32::exti::ExtiInput;
12use embassy_stm32::gpio::{Input, Pull}; 11use embassy_stm32::gpio::{Input, Pull};
13use embassy_stm32::Peripherals; 12use embassy_stm32::Peripherals;
@@ -18,10 +17,6 @@ use example_common::*;
18async fn main(_spawner: Spawner, p: Peripherals) { 17async fn main(_spawner: Spawner, p: Peripherals) {
19 info!("Hello World!"); 18 info!("Hello World!");
20 19
21 unsafe {
22 Dbgmcu::enable_all();
23 }
24
25 let button = Input::new(p.PC13, Pull::Down); 20 let button = Input::new(p.PC13, Pull::Down);
26 let mut button = ExtiInput::new(button, p.EXTI13); 21 let mut button = ExtiInput::new(button, p.EXTI13);
27 22