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

Timer example is incorrect #163

Closed systec-ms closed 2 years ago

systec-ms commented 2 years ago

If the interrupt is not cleared, it will immediately retriggered after the ISR has finished.

    timer.clear_interrupt(Event::TimeOut);
hannobraun commented 2 years ago

Good catch, thank you!

systec-ms commented 2 years ago

@hannobraun could you add good first issue as a label, I can't. Thanks.

hannobraun commented 2 years ago

Good call!

ghost commented 2 years ago

@systec-ms is there a repro case, or was this found by inspection?

systec-ms commented 2 years ago

@systec-ms is there a repro case, or was this found by inspection?

Inspection.

eldruin commented 2 years ago

Fixed in #169. Closing.