Skip to main content
SA.17
Associate III
May 24, 2019
Question

What is irq0 and irq1

  • May 24, 2019
  • 1 reply
  • 965 views

I have enabled exti (external interrupt for gpio input) using cubemx

so when i generate code , i get below code , where should i write ,

between irqn_0 comments or irqn_1 comments

what is irq0 and irq1 and how to differentiate them in the code

void EXTI2_3_IRQHandler(void)

{

 /* USER CODE BEGIN EXTI2_3_IRQn 0 */

 /* USER CODE END EXTI2_3_IRQn 0 */

 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_2);

 /* USER CODE BEGIN EXTI2_3_IRQn 1 */

 /* USER CODE END EXTI2_3_IRQn 1 */

}

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 25, 2019

It is simply an enumeration of comment sections within the function. One for code prior to HAL_GPIO_EXTI_IRQHandler() being called, and the other after, to allow for pre/post-processing.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..