Solved
STM32SnippetsL0 TIMER examples bug
Posted on August 16, 2017 at 17:33
In TIMERS/03_InputCapureOnTI1/main.c and TIMERS/04_PWM_Input/main.c the flags after an interrupt are being cleared this way:
TIMx->SR = ~(TIM_SR_CC1OF | TIM_SR_CC1IF); /* Clear the flags */
Shouldn't it be like below?
TIMx->SR &= ~(TIM_SR_CC1OF | TIM_SR_CC1IF); /* Clear the flags */
#timer #stm32snippetsl0 #bug