diff options
| author | WillaWillNot <[email protected]> | 2025-11-22 16:48:19 -0500 |
|---|---|---|
| committer | WillaWillNot <[email protected]> | 2025-11-22 16:48:46 -0500 |
| commit | 764c921a573e42f510a74d61f31302b8609bbd6c (patch) | |
| tree | 546d74daf73f501f7a29a929793ba2a55b47f3a4 /examples/stm32f7 | |
| parent | 54d57bc72f0e2b3eef0fa92d0b730ed6efd7bcaa (diff) | |
Reverted adding AnyBinding, removed AnyChannel, removed ability for ExtiInput to accept AnyPin and AnyChannel arguments, added ExtiPin trait for all pins which is lost on converstion to AnyPin and contains type-level ExtiChannel information
Diffstat (limited to 'examples/stm32f7')
| -rw-r--r-- | examples/stm32f7/src/bin/button_exti.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/stm32f7/src/bin/button_exti.rs b/examples/stm32f7/src/bin/button_exti.rs index 93560ed06..e7e1549a8 100644 --- a/examples/stm32f7/src/bin/button_exti.rs +++ b/examples/stm32f7/src/bin/button_exti.rs | |||
| @@ -18,12 +18,7 @@ async fn main(_spawner: Spawner) { | |||
| 18 | let p = embassy_stm32::init(Default::default()); | 18 | let p = embassy_stm32::init(Default::default()); |
| 19 | info!("Hello World!"); | 19 | info!("Hello World!"); |
| 20 | 20 | ||
| 21 | let mut button = ExtiInput::new( | 21 | let mut button = ExtiInput::new(p.PC13, p.EXTI13, Pull::Down, Irqs); |
| 22 | p.PC13, | ||
| 23 | p.EXTI13, | ||
| 24 | Pull::Down, | ||
| 25 | Irqs::as_any::<interrupt::typelevel::EXTI15_10, exti::InterruptHandler<interrupt::typelevel::EXTI15_10>>(), | ||
| 26 | ); | ||
| 27 | 22 | ||
| 28 | info!("Press the USER button..."); | 23 | info!("Press the USER button..."); |
| 29 | 24 | ||
