/* Checks whether the specified TIM flag is set or not.  */
FlagStatus TIM_GetFlagStatus(TIM_Module *TIMx, uint32_t TIM_FLAG)
/* Checks whether the specified TIM flag is set or not.  */
FlagStatus TIM_GetFlagStatus(TIM_Module *TIMx, uint32_t TIM_FLAG)
{
    INTStatus bitstatus = RESET;
    assert_param(IsTimAllModule(TIMx));
    assert_param(IsTimGetFlag(TIM_FLAG));
    if ((TIMx->STS & TIM_FLAG) != (uint32_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}