aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32u0
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/stm32u0
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/stm32u0')
-rw-r--r--examples/stm32u0/src/bin/button_exti.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/stm32u0/src/bin/button_exti.rs b/examples/stm32u0/src/bin/button_exti.rs
index 52fdc39c5..9d54479da 100644
--- a/examples/stm32u0/src/bin/button_exti.rs
+++ b/examples/stm32u0/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::Up, Irqs);
22 p.PC13,
23 p.EXTI13,
24 Pull::Up,
25 Irqs::as_any::<interrupt::typelevel::EXTI4_15, exti::InterruptHandler<interrupt::typelevel::EXTI4_15>>(),
26 );
27 22
28 info!("Press the USER button..."); 23 info!("Press the USER button...");
29 24