cancel
Showing results for 
Search instead for 
Did you mean: 

stm32l1xx_ll_tim.h BUG ???

kisstibor
Associate
Posted on January 03, 2017 at 11:30

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));

}
2 REPLIES 2
Khouloud GARSI
Lead II
Posted on January 03, 2017 at 13:14

Hello

Kiss.Tibor

,

I will share internally your feedback for further review and we will keep you updated about the taken actions/explanation if needed.

Thank you for your contribution and we apology for the

inconvenience this may cause.

Khouloud.

Khouloud GARSI
Lead II
Posted on January 09, 2017 at 13:47

Hi

Kiss.Tibor

,

The reported bug is confirmed.It will be fixed in coming versions.

Thanks again for your contribution.

Khouloud.