/* Enables or disables the TIM peripheral Main Outputs.  */
void TIM_EnableCtrlPwmOutputs(TIM_Module *TIMx, FunctionalState Cmd)
/* Enables or disables the TIM peripheral Main Outputs.  */
void TIM_EnableCtrlPwmOutputs(TIM_Module *TIMx, FunctionalState Cmd)
{
    assert_param(IsTimList2Module(TIMx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        TIMx->BKDT |= TIM_BKDT_MOEN;
    }
    else
    {
        TIMx->BKDT &= (uint16_t)(~((uint16_t)TIM_BKDT_MOEN));
    }
}