/* Checks whether the TIM interrupt has occurred or not.  */
INTStatus TIM_GetIntStatus(TIM_Module *TIMx, uint32_t TIM_IT)
/* Checks whether the TIM interrupt has occurred or not.  */
INTStatus TIM_GetIntStatus(TIM_Module *TIMx, uint32_t TIM_IT)
{
    INTStatus bitstatus = RESET;
    uint32_t itstatus = 0x0, itenable = 0x0;
    assert_param(IsTimAllModule(TIMx));
    assert_param(IsTimGetInt(TIM_IT));
    itstatus = TIMx->STS & TIM_IT;
    itenable = TIMx->DINTEN & TIM_IT;
    if ((itstatus != (uint32_t)RESET) && (itenable != (uint32_t)RESET))
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}