stm32-rs / stm32f7xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F7 family
Apache License 2.0
115 stars 67 forks source link

Example examples/blinky-timer-irq.rs does not compile #200

Open zvladimir opened 1 year ago

zvladimir commented 1 year ago

Development board STM32F723-DISCO When I compile example examples/blinky-timer-irq.rs, I get the error:

error[E0277]: the trait bound stm32f7xx_hal::interrupt: Nr is not satisfied --> src\main.rs:92:44 92 cortex_m::peripheral::NVIC::unmask(Interrupt::TIM2); ---------------------------------- ^^^^^^^^^^^^^^^ the trait Nr is not implemented for stm32f7xx_hal::interrupt
required by a bound introduced by this call

note: required by a bound in nvic::<impl cortex_m::peripheral::NVIC>::unmask --> C:\Users\Vladimir.cargo\registry\src\index.crates.io-6f17d22bba15001f\cortex-m-0.6.7\src\peripheral\nvic.rs:125:12 | 123 | pub unsafe fn unmask(interrupt: I) | ------ required by a bound in this associated function 124 | where 125 | I: Nr, | ^^ required by this bound in nvic::<impl NVIC>::unmask