mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user