cancel
Showing results for 
Search instead for 
Did you mean: 

What is irq0 and irq1

SA.17
Associate III

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 */

}

1 REPLY 1

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 Venmo
Up vote any posts that you find helpful, it shows what's working..