Commit f809e54
committed
HardwareTimer: pause() need to call HAL API to restore HAL state
Due to HAL Cube update (ex: for STM32L4 sha1 f41f10e)
it is now required to stop timer with HAL API
otherwise HAL state is not restored to HAL_TIM_STATE_READY,
and it is not possible to resume() a HardwareTimer after a pause().
Nevertheless it is not sufficient to guarantee that timer is stopped
specially if some channels are still running.
So it is also necessary to keep also the call to
LL_TIM_DisableCounter()
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>1 parent 8c34ed0 commit f809e54
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments