General-purpose timers (TIM)
Sets the TIMx Autoreload Register value.
ï‚· TIMx : where x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to
select the TIM peripheral.
ï‚· Autoreload : specifies the Autoreload register new value.
22.2.11.8 TIM_GetCounter
uint32_t TIM_GetCounter ( TIM_TypeDef * TIMx)
Gets the TIMx Counter value.
ï‚· TIMx : where x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to
select the TIM peripheral.
ï‚· Counter Register value
22.2.11.9 TIM_GetPrescaler
uint16_t TIM_GetPrescaler ( TIM_TypeDef * TIMx)
Gets the TIMx Prescaler value.
ï‚· TIMx : where x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to
select the TIM peripheral.
ï‚· Prescaler Register value.