Question
Bug Report STM32F10x_StdPeriph_Driver
Posted on November 14, 2014 at 18:14
Hi, I'm just starting on ARM CORTEX and STM32 via The Spark Core so forgive me if I'm missing something but in file stm32f10x_tim.c
Functionvoid
(http://stm32.kosyak.info/doc/struct_t_i_m___type_def.html
* TIMx, uint16_t TIM_IT)the lines02681
/* Clear the IT pending Bit */
02682 TIMx->http://stm32.kosyak.info/doc/struct_t_i_m___type_def.html#a44962ea5442d203bf4954035d1bfeb9d
= (uint16_t)~TIM_IT;should surely read02681
/* Clear the IT pending Bit */
02682 TIMx->http://stm32.kosyak.info/doc/struct_t_i_m___type_def.html#a44962ea5442d203bf4954035d1bfeb9d
&= (uint16_t)~TIM_IT;With &= instead of just = otherwise the function is clobbering all the flags in the status register. That's all.