I'm working with STM32F411 Discovery board. I use Atollic TrueStudio and HAL Library. I'm trying to make a simple program that checks when Timer2 overflows and, when it happens, I toggle an LED.
I can configure Timer2 with no problem. The problem is that I can't find a function that returns true when the timer overflows. I have to use
__HAL_TIM_GetCounter(&hTim2); to get the timer count, and I can use interrupt. But, what happens if I only want to know when the timer overflows without using interrupts. What should I use?