From 6cc60f3bd98f45215094c3788f54f4c6613fa2c7 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Wed, 19 May 2021 17:48:33 +0900 Subject: [PATCH] boards: cxd56xx: Set the pin number to the argument of gpio handler Make it easy to get the pin number on GPIO interrupt handler. --- boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c b/boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c index 236a34dc2a..27c8415f6b 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c @@ -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;