stm32f7xx-hal icon indicating copy to clipboard operation
stm32f7xx-hal copied to clipboard

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

Open zvladimir opened this issue 2 years ago • 0 comments

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<I>(interrupt: I) | ------ required by a bound in this associated function 124 | where 125 | I: Nr, | ^^ required by this bound in nvic::<impl NVIC>::unmask

zvladimir avatar Sep 11 '23 14:09 zvladimir