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

Add Timer::stop

Open PvdBerg1998 opened this issue 6 years ago • 4 comments

Please expose a way to stop a timer. Even better would be a way to init a timer without starting it. The pause line, located at https://docs.rs/stm32f4xx-hal/0.5.0/src/stm32f4xx_hal/timer.rs.html#210-231 could be extracted if I'm correct. The stm32f1xx hal (originally by japaric) already does this: https://docs.rs/stm32f1xx-hal/0.3.0/src/stm32f1xx_hal/timer.rs.html#149.

PvdBerg1998 avatar Jul 21 '19 15:07 PvdBerg1998

I noticed that the Cancel trait exists in the timer API. Maybe for this function we should implement it?

marcoieni avatar Mar 25 '20 23:03 marcoieni

@MarcoIeni Sounds like a good idea. Want to give it a shot?

therealprof avatar Mar 26 '20 08:03 therealprof

Yes, I will try to work on this :)

marcoieni avatar Mar 26 '20 09:03 marcoieni

A way to stop a timer has been provided by #137 and #148.

Even better would be a way to init a timer without starting it.

Should we do this? Otherwise we can close this issue.

marcoieni avatar May 01 '20 20:05 marcoieni