stm32duino / STM32Examples

Arduino library to provide several examples for the Arduino core for STM32 MCUs.
140 stars 54 forks source link

HardwareTimer: pause() needed before setMode() and resume() #34

Closed ABOSTM closed 3 years ago

ABOSTM commented 3 years ago

HardwareTimer: pause() needed before setMode() and resume()

Due to HAL strict management of its internal state, introduced with HAL Cube update (ex: for STM32L4 sha1 f41f10e), it is now required to pause() timer before setMode() and resume() otherwise HAL state is busy and timer is not (re)started.

Signed-off-by: Alexandre Bourdiol alexandre.bourdiol@st.com