mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Merged in david_s5/nuttx/upstream_stm32f7_irqfixes (pull request #229)
More build fiexes stm32f7 irqfixes Approved-by: Gregory Nutt
This commit is contained in:
@@ -89,7 +89,7 @@ static void *g_callback_arg;
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static int stm32_exti_pvd_isr(int irq, void *context, FAR void *arg)
|
static int stm32_exti_pvd_isr(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ static int stm32_exti_pvd_isr(int irq, void *context, FAR void *arg)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
xcpt_t stm32_exti_pvd(bool risingedge, bool fallingedge, bool event,
|
xcpt_t stm32_exti_pvd(bool risingedge, bool fallingedge, bool event,
|
||||||
xcpt_t func)
|
xcpt_t func, void *arg)
|
||||||
{
|
{
|
||||||
xcpt_t oldhandler;
|
xcpt_t oldhandler;
|
||||||
|
|
||||||
|
|||||||
@@ -481,10 +481,10 @@ static int stm32_sdmmc2_interrupt(int irq, void *context, void *arg);
|
|||||||
|
|
||||||
#ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE
|
#ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE
|
||||||
#ifdef CONFIG_STM32F7_SDMMC1
|
#ifdef CONFIG_STM32F7_SDMMC1
|
||||||
static int stm32_sdmmc1_rdyinterrupt(int irq, void *context);
|
static int stm32_sdmmc1_rdyinterrupt(int irq, void *context, void *arg);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_STM32F7_SDMMC2
|
#ifdef CONFIG_STM32F7_SDMMC2
|
||||||
static int stm32_sdmmc2_rdyinterrupt(int irq, void *context);
|
static int stm32_sdmmc2_rdyinterrupt(int irq, void *context, void *arg);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -846,14 +846,14 @@ static void stm32_configwaitints(struct stm32_dev_s *priv, uint32_t waitmask,
|
|||||||
|
|
||||||
/* Arm the SDMMC_D Ready and install Isr */
|
/* Arm the SDMMC_D Ready and install Isr */
|
||||||
|
|
||||||
stm32_gpiosetevent(pinset, true, false, false, priv->wrchandler);
|
stm32_gpiosetevent(pinset, true, false, false, priv->wrchandler, priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disarm SDMMC_D ready */
|
/* Disarm SDMMC_D ready */
|
||||||
|
|
||||||
if ((wkupevent & SDIOWAIT_WRCOMPLETE) != 0)
|
if ((wkupevent & SDIOWAIT_WRCOMPLETE) != 0)
|
||||||
{
|
{
|
||||||
stm32_gpiosetevent(priv->d0_gpio, false, false, false , NULL);
|
stm32_gpiosetevent(priv->d0_gpio, false, false, false , NULL, NULL);
|
||||||
stm32_configgpio(priv->d0_gpio);
|
stm32_configgpio(priv->d0_gpio);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -1506,18 +1506,18 @@ static void stm32_endtransfer(struct stm32_dev_s *priv,
|
|||||||
|
|
||||||
#ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE
|
#ifdef CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE
|
||||||
# if defined(CONFIG_STM32F7_SDMMC1)
|
# if defined(CONFIG_STM32F7_SDMMC1)
|
||||||
static int stm32_sdmmc1_rdyinterrupt(int irq, void *context)
|
static int stm32_sdmmc1_rdyinterrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
struct stm32_dev_s *priv = &g_sdmmcdev1;
|
struct stm32_dev_s *priv = (struct stm32_dev_s *)arg;
|
||||||
stm32_endwait(priv, SDIOWAIT_WRCOMPLETE);
|
stm32_endwait(priv, SDIOWAIT_WRCOMPLETE);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(CONFIG_STM32F7_SDMMC2)
|
# if defined(CONFIG_STM32F7_SDMMC2)
|
||||||
static int stm32_sdmmc2_rdyinterrupt(int irq, void *context)
|
static int stm32_sdmmc2_rdyinterrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
struct stm32_dev_s *priv = &g_sdmmcdev2;
|
struct stm32_dev_s *priv = struct stm32_dev_s *)arg;
|
||||||
stm32_endwait(priv, SDIOWAIT_WRCOMPLETE);
|
stm32_endwait(priv, SDIOWAIT_WRCOMPLETE);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ static void stm32_tim_setperiod(FAR struct stm32_tim_dev_s *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int stm32_tim_setisr(FAR struct stm32_tim_dev_s *dev,
|
static int stm32_tim_setisr(FAR struct stm32_tim_dev_s *dev,
|
||||||
int (*handler)(int irq, void *context),
|
xcpt_t handler,
|
||||||
int source)
|
int source)
|
||||||
{
|
{
|
||||||
int vectorno;
|
int vectorno;
|
||||||
|
|||||||
@@ -167,7 +167,8 @@ struct stm32_tim_ops_s
|
|||||||
|
|
||||||
/* Timer interrupts */
|
/* Timer interrupts */
|
||||||
|
|
||||||
int (*setisr)(FAR struct stm32_tim_dev_s *dev, int (*handler)(int irq, void *context), int source);
|
int (*setisr)(FAR struct stm32_tim_dev_s *dev, xcpt_t handler,
|
||||||
|
int source);
|
||||||
void (*enableint)(FAR struct stm32_tim_dev_s *dev, int source);
|
void (*enableint)(FAR struct stm32_tim_dev_s *dev, int source);
|
||||||
void (*disableint)(FAR struct stm32_tim_dev_s *dev, int source);
|
void (*disableint)(FAR struct stm32_tim_dev_s *dev, int source);
|
||||||
void (*ackint)(FAR struct stm32_tim_dev_s *dev, int source);
|
void (*ackint)(FAR struct stm32_tim_dev_s *dev, int source);
|
||||||
|
|||||||
Reference in New Issue
Block a user