5050# endif
5151extern " C"
5252{
53- static int can1_irq (const int irq, void *);
53+ static int can1_irq (const int irq, void *, void * );
5454#if UAVCAN_STM32_NUM_IFACES > 1
55- static int can2_irq (const int irq, void *);
55+ static int can2_irq (const int irq, void *, void * );
5656#endif
5757}
5858#endif
@@ -1010,7 +1010,7 @@ void CanDriver::initOnce()
10101010#if UAVCAN_STM32_NUTTX
10111011# define IRQ_ATTACH (irq, handler ) \
10121012 { \
1013- const int res = irq_attach (irq, handler); \
1013+ const int res = irq_attach (irq, handler, NULL ); \
10141014 (void )res; \
10151015 assert (res >= 0 ); \
10161016 up_enable_irq (irq); \
@@ -1119,7 +1119,7 @@ extern "C"
11191119
11201120#if UAVCAN_STM32_NUTTX
11211121
1122- static int can1_irq (const int irq, void *)
1122+ static int can1_irq (const int irq, void *, void * )
11231123{
11241124 if (irq == STM32_IRQ_CAN1TX)
11251125 {
@@ -1142,7 +1142,7 @@ static int can1_irq(const int irq, void*)
11421142
11431143# if UAVCAN_STM32_NUM_IFACES > 1
11441144
1145- static int can2_irq (const int irq, void *)
1145+ static int can2_irq (const int irq, void *, void * )
11461146{
11471147 if (irq == STM32_IRQ_CAN2TX)
11481148 {
0 commit comments