Did _callback function runs inside interrupt scope?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-08 12:19 PM
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.
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-08 12:23 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-08 12:23 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-13 4:18 AM
Thanks for the answer
