diff options
Diffstat (limited to 'embassy-stm32f4-examples/src/bin')
| -rw-r--r-- | embassy-stm32f4-examples/src/bin/exti.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32f4-examples/src/bin/exti.rs b/embassy-stm32f4-examples/src/bin/exti.rs index 2201189eb..9b2535b1c 100644 --- a/embassy-stm32f4-examples/src/bin/exti.rs +++ b/embassy-stm32f4-examples/src/bin/exti.rs | |||
| @@ -24,8 +24,9 @@ async fn run(dp: stm32::Peripherals, _cp: cortex_m::Peripherals) { | |||
| 24 | let gpioa = dp.GPIOA.split(); | 24 | let gpioa = dp.GPIOA.split(); |
| 25 | 25 | ||
| 26 | let button = gpioa.pa0.into_pull_up_input(); | 26 | let button = gpioa.pa0.into_pull_up_input(); |
| 27 | let mut syscfg = dp.SYSCFG.constrain(); | ||
| 27 | 28 | ||
| 28 | let pin = ExtiPin::new(button, interrupt::take!(EXTI0)); | 29 | let pin = ExtiPin::new(button, interrupt::take!(EXTI0), &mut syscfg); |
| 29 | pin_mut!(pin); | 30 | pin_mut!(pin); |
| 30 | 31 | ||
| 31 | info!("Starting loop"); | 32 | info!("Starting loop"); |
