⚠️
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.
2 posts / 0 new
Last post
rajucoolsuraj
Offline
Last seen:6 months 1 week ago
加入:2018-12-12 16:09
GPIOx_IRQn

Hello Dialog,

Can I know the GPIO pin header 'X' in GPIOx and IRQ 'n' mapping?

How to configure different port pins for GPIO interrupts?

Is it per port 'X' - 5(n) configurable interrupts?

Thanks

Raju

Device:
PM_Dialog
Offline
Last seen:2 days 20 hours ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

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