Solved
STM timer query
Posted on December 06, 2016 at 13:59
We are working on a project based on timer in which we keep facing an error : symbol _TIM1_SetCounter not defined. We have included the header files as well. Thanks in advance.
We are working on a project based on timer in which we keep facing an error : symbol _TIM1_SetCounter not defined. We have included the header files as well. Thanks in advance.
Hi
,/** * @brief Sets the TIMx Counter Register value * @param TIMx: where x can be 1 to 14 to select the TIM peripheral. * @param Counter: specifies the Counter register new value. * @retval None */void TIM_SetCounter(TIM_TypeDef* TIMx, uint32_t Counter){ /* Check the parameters */ assert_param(IS_TIM_ALL_PERIPH(TIMx)); /* Set the Counter Register value */ TIMx->CNT = Counter;}�?�?�?�?�?�?�?�?�?�?�?�?�?�? TIM_SetCounter(TIM1, 100);
-Nesrine M-
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.