aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wb
diff options
context:
space:
mode:
authorWillaWillNot <[email protected]>2025-11-22 16:48:19 -0500
committerWillaWillNot <[email protected]>2025-11-22 16:48:46 -0500
commit764c921a573e42f510a74d61f31302b8609bbd6c (patch)
tree546d74daf73f501f7a29a929793ba2a55b47f3a4 /examples/stm32wb
parent54d57bc72f0e2b3eef0fa92d0b730ed6efd7bcaa (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/stm32wb')
-rw-r--r--examples/stm32wb/src/bin/button_exti.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/stm32wb/src/bin/button_exti.rs b/examples/stm32wb/src/bin/button_exti.rs
index e2698450a..3c58eb556 100644
--- a/examples/stm32wb/src/bin/button_exti.rs
+++ b/examples/stm32wb/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.PC4, p.EXTI4, Pull::Up, Irqs);
22 p.PC4,
23 p.EXTI4,
24 Pull::Up,
25 Irqs::as_any::<interrupt::typelevel::EXTI4, exti::InterruptHandler<interrupt::typelevel::EXTI4>>(),
26 );
27 22
28 info!("Press the USER button..."); 23 info!("Press the USER button...");
29 24