/* Specifies the TIMx Counter Mode to be used.  */
void TIM_ConfigCntMode(TIM_Module *TIMx, uint16_t CntMode)
/* Specifies the TIMx Counter Mode to be used.  */
void TIM_ConfigCntMode(TIM_Module *TIMx, uint16_t CntMode)
{
    uint32_t tmpcr1 = 0;
    assert_param(IsTimList3Module(TIMx));
    assert_param(IsTimCntMode(CntMode));
    tmpcr1 = TIMx->CTRL1;
    tmpcr1 &= (uint32_t)(~((uint32_t)(TIM_CTRL1_DIR | TIM_CTRL1_CAMSEL)));
    tmpcr1 |= CntMode;
    TIMx->CTRL1 = tmpcr1;
}