AnsweredAssumed Answered

Where to place user Code in IRQ handler generated by STM32 Cube

Question asked by jamieB on May 16, 2016
Latest reply on Aug 24, 2016 by Clive One
I am new to STM32 MCU's so I got the STM32F0 Discovery board to familiarize myself.  I am attempting to use STM32 Cube code generator.  
The STM32 Cube creates an IRQ handler for each interrupt I activate that look like this:
/**
* @brief This function handles TIM3 global interrupt.
*/
void TIM3_IRQHandler(void)
{
  /* USER CODE BEGIN TIM3_IRQn 0 */
  

  /* USER CODE END TIM3_IRQn 0 */

  HAL_TIM_IRQHandler(&htim3);

  /* USER CODE BEGIN TIM3_IRQn 1 */

  /* USER CODE END TIM3_IRQn 1 */
}


My question how do i decide whether to put code in the top or bottom part of the user code sections.  Thanks in advance for the help!



Outcomes