cancel
Showing results for 
Search instead for 
Did you mean: 

Did _callback function runs inside interrupt scope?

LOliv
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

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)

View solution in original post

2 REPLIES 2
S.Ma
Principal

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
Associate II

Thanks for the answer