Question
How to get peripheral clock programmatically?
Hello,
I have a generic function for the timer configuration. The time base address is an input parameter to this function. I'm looking for a way to get the timer clock so that I can set the timer prescaler. How can I do that with HAL?
I guess I need to get first the peripheral (APB1, APB2, ..) on which my timer is connected ? But how?
Thank you for your help,
Greg
