/* Checks whether the specified TIM flag is set or not.  */
FlagStatus TIM_GetCCENStatus(TIM_Module *TIMx, uint32_t TIM_CCEN)
/* Checks whether the specified TIM flag is set or not.  */
FlagStatus TIM_GetCCENStatus(TIM_Module *TIMx, uint32_t TIM_CCEN)
{
    INTStatus bitstatus = RESET;
    assert_param(IsTimList3Module(TIMx));
	  if(TIMx==TIM1 || TIMx==TIM8){
			assert_param(IsAdvancedTimCCENFlag(TIM_CCEN));
			if ((TIMx->CCEN & TIM_CCEN) != (uint32_t)RESET)
			{
					bitstatus = SET;
			}
			else
			{
					bitstatus = RESET;
			}
		}else if(TIMx==TIM2 || TIMx==TIM3 || TIMx==TIM4 || TIMx==TIM5 || TIMx==TIM9){
			assert_param(IsGeneralTimCCENFlag(TIM_CCEN));
			if ((TIMx->CCEN & TIM_CCEN) != (uint32_t)RESET)
			{
					bitstatus = SET;
			}
			else
			{
					bitstatus = RESET;
			}
		}
    return bitstatus;
}