/* Enables or disables the tim complementary PWM output Status after Break.  */
void TIM_DirectOutput(TIM_TypeDef *tim, FunctionalState state)
/* Enables or disables the tim complementary PWM output Status after Break.  */
void TIM_DirectOutput(TIM_TypeDef *tim, FunctionalState state)
{
    (state) ? SET_BIT(tim->BDTR, TIM_BDTR_DOEN) : CLEAR_BIT(tim->BDTR, TIM_BDTR_DOEN);
}