cancel
Showing results for 
Search instead for 
Did you mean: 

Which driver having lower execution time HAL or LL?

parth kothiya
Senior

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.​

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Direct register access will always be the fastest.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

Direct register access will always be the fastest.

If you feel a post has answered your question, please click "Accept as Solution".
S.Ma
Principal

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

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

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".