AnsweredAssumed Answered

stm32l1xx_ll_tim.h BUG ???

Question asked by Kiss.Tibor on Jan 3, 2017
Latest reply on Jan 9, 2017 by Khouloud G

RM0038 Reference manual

Page 502/908
Bit 1 UDIS: Update disable
0: UEV enabled
1: UEV disabled

 

stm32l1xx_ll_tim.h 
I think the SET_BIT and CLEAR_BIT macros are swapped !!!!

 

__STATIC_INLINE void LL_TIM_EnableUpdateEvent(TIM_TypeDef *TIMx)
{
SET_BIT(TIMx->CR1, TIM_CR1_UDIS);
}
__STATIC_INLINE void LL_TIM_DisableUpdateEvent(TIM_TypeDef *TIMx)
{
CLEAR_BIT(TIMx->CR1, TIM_CR1_UDIS);
}

__STATIC_INLINE uint32_t LL_TIM_IsEnabledUpdateEvent(TIM_TypeDef *TIMx)
{
return (READ_BIT(TIMx->CR1, TIM_CR1_UDIS) != (TIM_CR1_UDIS));
}

Outcomes