diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-22 20:12:36 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-01-22 21:31:06 +0100 |
| commit | 3387ee7238f1c9c4eeccb732ba543cbe38ab7ccd (patch) | |
| tree | 0b2353dcc0c44c6415a1d765427b59318c6e3a63 /examples/stm32wba | |
| parent | 9f76dbb93b4ab5efc8a0d51b4507ab7eb144fcd9 (diff) | |
stm32/gpio: remove generics.
Diffstat (limited to 'examples/stm32wba')
| -rw-r--r-- | examples/stm32wba/src/bin/button_exti.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/stm32wba/src/bin/button_exti.rs b/examples/stm32wba/src/bin/button_exti.rs index 1e970fdd6..34a08bbc6 100644 --- a/examples/stm32wba/src/bin/button_exti.rs +++ b/examples/stm32wba/src/bin/button_exti.rs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | use defmt::*; | 4 | use defmt::*; |
| 5 | use embassy_executor::Spawner; | 5 | use embassy_executor::Spawner; |
| 6 | use embassy_stm32::exti::ExtiInput; | 6 | use embassy_stm32::exti::ExtiInput; |
| 7 | use embassy_stm32::gpio::{Input, Pull}; | 7 | use embassy_stm32::gpio::Pull; |
| 8 | use {defmt_rtt as _, panic_probe as _}; | 8 | use {defmt_rtt as _, panic_probe as _}; |
| 9 | 9 | ||
| 10 | #[embassy_executor::main] | 10 | #[embassy_executor::main] |
| @@ -12,8 +12,7 @@ async fn main(_spawner: Spawner) { | |||
| 12 | let p = embassy_stm32::init(Default::default()); | 12 | let p = embassy_stm32::init(Default::default()); |
| 13 | info!("Hello World!"); | 13 | info!("Hello World!"); |
| 14 | 14 | ||
| 15 | let button = Input::new(p.PC13, Pull::Up); | 15 | let mut button = ExtiInput::new(p.PC13, p.EXTI13, Pull::Up); |
| 16 | let mut button = ExtiInput::new(button, p.EXTI13); | ||
| 17 | 16 | ||
| 18 | info!("Press the USER button..."); | 17 | info!("Press the USER button..."); |
| 19 | 18 | ||
