diff options
| author | xoviat <[email protected]> | 2021-03-22 13:04:28 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2021-03-22 13:04:28 -0500 |
| commit | b79e9c29274fb7ede9122178a757101ac4e7283e (patch) | |
| tree | 49d3a0a31cea66cca35a58e7d8b4de4612b17d49 /embassy-stm32f4-examples/src/bin | |
| parent | 712204edb81b40fda8833cd4401d91c41bfb28d7 (diff) | |
stm32: fix exti to require SysCfg.constrain()
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"); |
