AnsweredAssumed Answered

HAL_TIM_IRQHandler optimization bug

Question asked by Nicolae Mihalache on Mar 6, 2017
Latest reply on May 31, 2017 by e d

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[...]

Outcomes