Question
HAL Timer Module - read & set counter value
Posted on July 16, 2014 at 12:22
In the old standard drivers, you could use TIM_GetCounter(TIM2) and TIM_SetCounter(TIM2, 0) to read or modify the timer counter values. Is there a similar thing within the HAL drivers? I can't seem to find any replacement functions for these. Should I just access the register directly? TIM2->CNT
#hal-diver #timers #stm32f4