We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caf5c40 commit d38939eCopy full SHA for d38939e
1 file changed
stmhal/timer.c
@@ -686,6 +686,7 @@ STATIC mp_obj_t pyb_timer_deinit(mp_obj_t self_in) {
686
prev_chan->next = NULL;
687
}
688
689
+ self->tim.State = HAL_TIM_STATE_RESET;
690
self->tim.Instance->CCER = 0x0000; // disable all capture/compare outputs
691
self->tim.Instance->CR1 = 0x0000; // disable the timer and reset its state
692
0 commit comments