⚠️ Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
If you would like to configure a GPIO interrupt it doesn’t matter which GPIOx_IRQn (x= 0,1,2,3,4) you will select. Just chose one of them, that's no problem. If you use more than one GPIO interrupt, in the inputs of GPIO_EnableIRQ() pass different types of GPIOx_IRQn. Suppose that you would like to configure the GPIO_PORT_2 , GPIO_PIN_1 as a high level triggered GPIO interrupt with 2ms denouncing time. You should call the GPIO_EnableIRQ() as follow:
Hi rajucoolsuraj,
If you would like to configure a GPIO interrupt it doesn’t matter which GPIOx_IRQn (x= 0,1,2,3,4) you will select. Just chose one of them, that's no problem. If you use more than one GPIO interrupt, in the inputs of GPIO_EnableIRQ() pass different types of GPIOx_IRQn. Suppose that you would like to configure the GPIO_PORT_2 , GPIO_PIN_1 as a high level triggered GPIO interrupt with 2ms denouncing time. You should call the GPIO_EnableIRQ() as follow:
GPIO_EnableIRQ(GPIO_PORT_2, GPIO_PIN_1, GPIO0_IRQn, false, false, 2);
Thanks, PM_Dialog