Skip to main content
Visitor II
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

    TDKAnswer
    Super User
    March 10, 2022

    Direct register access will always be the fastest.

    Visitor II
    March 10, 2022

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

    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.
    Visitor II
    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...