Add more missing arguments to interrupt handling functions.

This commit is contained in:
Gregory Nutt
2017-02-27 11:14:21 -06:00
parent 22cefec6e8
commit 7e8e869352
2 changed files with 8 additions and 7 deletions
+7 -7
View File
@@ -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)
{ {
+1
View File
@@ -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;
}; };
/**************************************************************************** /****************************************************************************