diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-08-19 23:32:22 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-08-19 23:50:19 +0200 |
| commit | 2c992f701049a9c0e72048b134c26fdb26f2692a (patch) | |
| tree | 84aa74121769c9d9f3917cb493befd0fa14841cc /examples/stm32f4/src/bin/button_exti.rs | |
| parent | 446d6c275c2c3e0dcc57dd69c3c1b1e7f6c92488 (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.rs | 5 |
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"] |
| 8 | mod example_common; | 8 | mod example_common; |
| 9 | use embassy::executor::Spawner; | 9 | use embassy::executor::Spawner; |
| 10 | use embassy_stm32::dbgmcu::Dbgmcu; | ||
| 11 | use embassy_stm32::exti::ExtiInput; | 10 | use embassy_stm32::exti::ExtiInput; |
| 12 | use embassy_stm32::gpio::{Input, Pull}; | 11 | use embassy_stm32::gpio::{Input, Pull}; |
| 13 | use embassy_stm32::Peripherals; | 12 | use embassy_stm32::Peripherals; |
| @@ -18,10 +17,6 @@ use example_common::*; | |||
| 18 | async fn main(_spawner: Spawner, p: Peripherals) { | 17 | async 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 | ||
