Hello !
I've been learning how STM32 works, and I've learned how to set Timers in STM32, how prescalar works etc, and I've found out HAL_Delay, and HAL_GetTick. In which HAL_Delay is understandable that provides min. 1ms delay, but I couldn't understand HAL_GetTick, even after reading some definitions like : " The HAL_GetTick function calculates the elapsed time between calls using the us_ticker by looking at the difference between the previous read value and the current time of us_ticker. The previous timestamp is stored in a global variable until next time it's used.". But I still didn't understand it :>.
I would like to emphasize that I am newbie in it so please if there is an easy short example like LED diod example or something very simple to understand this I would be very glad
I've been learning how STM32 works, and I've learned how to set Timers in STM32, how prescalar works etc, and I've found out HAL_Delay, and HAL_GetTick. In which HAL_Delay is understandable that provides min. 1ms delay, but I couldn't understand HAL_GetTick, even after reading some definitions like : " The HAL_GetTick function calculates the elapsed time between calls using the us_ticker by looking at the difference between the previous read value and the current time of us_ticker. The previous timestamp is stored in a global variable until next time it's used.". But I still didn't understand it :>.
I would like to emphasize that I am newbie in it so please if there is an easy short example like LED diod example or something very simple to understand this I would be very glad