2019-05-23 09:31 PM
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 */
}
2019-05-25 06:41 AM
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.