Skip to content

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

@zvladimir

Description

@zvladimir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions