From 0c37d0a9ff070d5b96d827fad722af5cdcfdea2e Mon Sep 17 00:00:00 2001 From: Bruno Bousquet <21108660+brunob45@users.noreply.github.com> Date: Sat, 29 Jun 2024 10:28:02 -0400 Subject: [PATCH] fix stm32g0 example --- examples/stm32g0/src/bin/input_capture.rs | 2 +- examples/stm32g0/src/bin/pwm_input.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stm32g0/src/bin/input_capture.rs b/examples/stm32g0/src/bin/input_capture.rs index 69fdae96d..9b940d618 100644 --- a/examples/stm32g0/src/bin/input_capture.rs +++ b/examples/stm32g0/src/bin/input_capture.rs @@ -36,7 +36,7 @@ async fn blinky(led: peripherals::PB1) { } bind_interrupts!(struct Irqs { - TIM2 => timer::CaptureCompareInterruptHandler; + TIM2 => timer::InterruptHandler; }); #[embassy_executor::main] diff --git a/examples/stm32g0/src/bin/pwm_input.rs b/examples/stm32g0/src/bin/pwm_input.rs index 152ecda86..e9983063d 100644 --- a/examples/stm32g0/src/bin/pwm_input.rs +++ b/examples/stm32g0/src/bin/pwm_input.rs @@ -34,7 +34,7 @@ async fn blinky(led: peripherals::PB1) { } bind_interrupts!(struct Irqs { - TIM2 => timer::CaptureCompareInterruptHandler; + TIM2 => timer::InterruptHandler; }); #[embassy_executor::main]