AnsweredAssumed Answered

How do I get the frequency of a timer in STM32F769I?

Question asked by arnold_w on Jan 19, 2018
Latest reply on Jan 19, 2018 by Clive One

I am working with the STM32F7691I-EVAL board and I would like to determine the frequency of any given timer:

 

GET_TIMER_FREQ(TIMx)

 

The macro/function should be able to determine the frequency regardless of which clock the microcontroller is running from. Of course it is fully acceptable to do it 2 steps, first determine the clock source and then determine the resulting frequency for a particular timer. I have gone through the HAL-files, but I am unable to find such macros/functions. Can someone please help me?

Outcomes