From 6443aec36ba89ba5c7ab321c36f67feb19b2d811 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 28 Feb 2017 07:04:34 -1000 Subject: [PATCH] STM32:stm32_sdio Fixed irq interface --- arch/arm/src/stm32/stm32_sdio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index 8be48a8b8e..82c82bcd7c 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -418,7 +418,7 @@ static void stm32_endtransfer(struct stm32_dev_s *priv, sdio_eventset_t wkupeven static int stm32_interrupt(int irq, void *context, FAR void *arg); #ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE -static int stm32_rdyinterrupt(int irq, void *context); +static int stm32_rdyinterrupt(int irq, void *context, FAR void *arg); #endif /* SDIO interface methods ***************************************************/ @@ -668,14 +668,14 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask, /* Arm the SDIO_D Ready and install Isr */ - stm32_gpiosetevent(pinset, true, false, false, stm32_rdyinterrupt); + stm32_gpiosetevent(pinset, true, false, false, stm32_rdyinterrupt, priv); } /* Disarm SDIO_D ready */ if ((wkupevent & SDIOWAIT_WRCOMPLETE) != 0) { - stm32_gpiosetevent(GPIO_SDIO_D0, false, false, false , NULL); + stm32_gpiosetevent(GPIO_SDIO_D0, false, false, false , NULL, NULL); stm32_configgpio(GPIO_SDIO_D0); } #endif @@ -1315,9 +1315,9 @@ static void stm32_endtransfer(struct stm32_dev_s *priv, sdio_eventset_t wkupeven ****************************************************************************/ #ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE -static int stm32_rdyinterrupt(int irq, void *context) +static int stm32_rdyinterrupt(int irq, void *context, FAR void *arg) { - struct stm32_dev_s *priv = &g_sdiodev; + struct stm32_dev_s *priv = (struct stm32_dev_s *) arg; stm32_endwait(priv, SDIOWAIT_WRCOMPLETE); return OK; }