boards: cxd56xx: Set the pin number to the argument of gpio handler

Make it easy to get the pin number on GPIO interrupt handler.
This commit is contained in:
SPRESENSE 2021-05-19 17:48:33 +09:00 committed by Alin Jerpelea
parent ca775beccb
commit 6cc60f3bd9
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ int board_gpio_intconfig(uint32_t pin, int mode, bool filter, xcpt_t isr)
gpiocfg |= GPIOINT_NOISE_FILTER_ENABLE;
}
ret = cxd56_gpioint_config(pin, gpiocfg, isr, NULL);
ret = cxd56_gpioint_config(pin, gpiocfg, isr, (void *)pin);
return ret;
#else
return -ENOTSUP;