cancel
Showing results for 
Search instead for 
Did you mean: 

GetTick() in LL Driver

mangesh1
Visitor

Hello,

Normally we use HAL_GetTick() in HAL driver.

I want to use GetTick() in STM32 LL driver. 

How to get and use GetTick() in STM32 LL driver?

1 REPLY 1
Andrew Neil
Super User

You can use both HAL and LL together in a project.

AndrewNeil_0-1770202263949.png

https://www.st.com/resource/en/user_manual/um1725-description-of-stm32f4-hal-and-lowlayer-drivers-stmicroelectronics.pdf#page=44

via: https://www.st.com/en/embedded-software/stm32cubef4.html#documentation

 

Or you could just look at how HAL_GetTick() works (the source is provided), and implement that yourself ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.