Question
HAL_TIM_IRQHandler optimization bug
Posted on March 06, 2017 at 22:49
There are no 'else' statement in between the mutual exclusive 'if' cases in HAL_TIM_IRQHandler. This wastes precious processor cycles in real time (like PID) loops
[...]
}
/* Capture compare 2 event */
if
([...]
Compare to the better written HAL_DMA_IRQHandler where there are always 'else' statements
[...]
}
/* Transfer Complete Interrupt management ***********************************/
else if
(
[...]
#hal_tim_irqhandler