Skip to main content
LOliv
Associate
May 8, 2019
Solved

Did _callback function runs inside interrupt scope?

  • May 8, 2019
  • 2 replies
  • 728 views

Hello,

I'am new on using CubeMX and HAL functions. I would like to know if interrupt callback functions, that can be use for execute some code after ISR, are executed from inside interruption scope.

I'm asking that because as a programing good pratices, code executed within interrupt routine should be as short as possible to avoid latency and nested interrupts. So, if _callback runs within interruption it should be short either.

Thanks in advance.

This topic has been closed for replies.
Best answer by S.Ma

Callbacks are mainly interrupts user hooks of the corresponding ISR.

Keep callbacks content brief.

If HAL callbacks requires time optimisation, go for LL (low layer)

2 replies

S.Ma
S.MaBest answer
Principal
May 8, 2019

Callbacks are mainly interrupts user hooks of the corresponding ISR.

Keep callbacks content brief.

If HAL callbacks requires time optimisation, go for LL (low layer)

LOliv
LOlivAuthor
Associate
May 13, 2019

Thanks for the answer