AnsweredAssumed Answered

TIM_ClearFlag() function in stm32f10x library

Question asked by zaalak.zaal on Jul 7, 2012
Latest reply on Jul 13, 2012 by Clive One
The 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 operation on flags, is this correct?