/* Checks whether the TIM interrupt has occurred or not.  */
ITStatus TIM_GetITStatus(TIM_TypeDef *tim, TIMIT_TypeDef it)
/* Checks whether the TIM interrupt has occurred or not.  */
ITStatus TIM_GetITStatus(TIM_TypeDef *tim, TIMIT_TypeDef it)
{
    return (((tim->SR & it) && (tim->DIER & it)) ? SET : RESET);
}