TIM_ClearFlag() function in stm32f10x library
Posted on July 07, 2012 at 09:02The content of this function is /* Clear the flags */ TIMx->SR = (uint16_t)~TIM_FLAG; But I think it must be in this format: /* Clear the flags */ TIMx->SR &= (uint16_t)~TIM_FLAG; a & is needed for correct clear ...