Skip to main content
parth kothiya
Associate III
March 10, 2022
Solved

Which driver having lower execution time HAL or LL?

  • March 10, 2022
  • 2 replies
  • 896 views

Which driver is faster from HAL or LL so cpu can perform other important tasks.

For example to read & write gpio

​Using HAL driver,

Using LL driver,

Using direct access MCU resistor.​

This topic has been closed for replies.
Best answer by TDK

Direct register access will always be the fastest.

2 replies

TDK
TDKBest answer
Super User
March 10, 2022

Direct register access will always be the fastest.

"If you feel a post has answered your question, please click ""Accept as Solution""."
parth kothiya
Associate III
March 10, 2022

Can we use both drivers in same application code writing using HAL + LL + Direct access MCU resistor all of this?​

TDK
Super User
March 10, 2022
Yes. A little silly to do so, however. Need to ensure the HAL state machine doesn’t get disturbed but your other code.
"If you feel a post has answered your question, please click ""Accept as Solution""."
S.Ma
Principal
March 10, 2022

You just described the list in increasing achievable performance level. Apart from this, maybe not all the code requires to be best performance...