Timer in [stm32f4xx-hal](https://github.com/stm32-rs/stm32f4xx-hal/blob/master/src/timer.rs) crate implements the [Cancel](https://docs.rs/crate/embedded-hal/0.2.3/source/src/timer.rs) trait. You may be interested in doing the same for this crate. Examples: - https://github.com/stm32-rs/stm32f4xx-hal/blob/master/examples/timer-periph.rs - https://github.com/stm32-rs/stm32f4xx-hal/blob/master/examples/timer-syst.rs