mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Add more missing arguments to interrupt handling functions.
This commit is contained in:
@@ -539,13 +539,13 @@ static void sam_notransfer(struct sam_dev_s *priv);
|
|||||||
|
|
||||||
static int sam_hsmci_interrupt(struct sam_dev_s *priv);
|
static int sam_hsmci_interrupt(struct sam_dev_s *priv);
|
||||||
#ifdef CONFIG_SAMA5_HSMCI0
|
#ifdef CONFIG_SAMA5_HSMCI0
|
||||||
static int sam_hsmci0_interrupt(int irq, void *context);
|
static int sam_hsmci0_interrupt(int irq, void *context, void *arg);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SAMA5_HSMCI1
|
#ifdef CONFIG_SAMA5_HSMCI1
|
||||||
static int sam_hsmci1_interrupt(int irq, void *context);
|
static int sam_hsmci1_interrupt(int irq, void *context, void *arg);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SAMA5_HSMCI2
|
#ifdef CONFIG_SAMA5_HSMCI2
|
||||||
static int sam_hsmci2_interrupt(int irq, void *context);
|
static int sam_hsmci2_interrupt(int irq, void *context, void *arg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* SDIO interface methods ***************************************************/
|
/* SDIO interface methods ***************************************************/
|
||||||
@@ -1677,21 +1677,21 @@ static int sam_hsmci_interrupt(struct sam_dev_s *priv)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_HSMCI0
|
#ifdef CONFIG_SAMA5_HSMCI0
|
||||||
static int sam_hsmci0_interrupt(int irq, void *context)
|
static int sam_hsmci0_interrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
return sam_hsmci_interrupt(&g_hsmci0);
|
return sam_hsmci_interrupt(&g_hsmci0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_HSMCI1
|
#ifdef CONFIG_SAMA5_HSMCI1
|
||||||
static int sam_hsmci1_interrupt(int irq, void *context)
|
static int sam_hsmci1_interrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
return sam_hsmci_interrupt(&g_hsmci1);
|
return sam_hsmci_interrupt(&g_hsmci1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_HSMCI2
|
#ifdef CONFIG_SAMA5_HSMCI2
|
||||||
static int sam_hsmci2_interrupt(int irq, void *context)
|
static int sam_hsmci2_interrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
return sam_hsmci_interrupt(&g_hsmci2);
|
return sam_hsmci_interrupt(&g_hsmci2);
|
||||||
}
|
}
|
||||||
@@ -1984,7 +1984,7 @@ static int sam_attach(FAR struct sdio_dev_s *dev)
|
|||||||
|
|
||||||
/* Attach the HSMCI interrupt handler */
|
/* Attach the HSMCI interrupt handler */
|
||||||
|
|
||||||
ret = irq_attach(irq, handler, NULL);
|
ret = irq_attach(irq, handler, priv);
|
||||||
if (ret == OK)
|
if (ret == OK)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ struct stm32_config_s
|
|||||||
{
|
{
|
||||||
struct cc3000_config_s dev;
|
struct cc3000_config_s dev;
|
||||||
xcpt_t handler;
|
xcpt_t handler;
|
||||||
|
void *arg;
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user