]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix mismatched aliased event and event stub function prototypes.
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 17 Jun 2018 06:06:07 +0000 (16:06 +1000)
committerskullydazed <skullydazed@users.noreply.github.com>
Tue, 11 Sep 2018 19:52:57 +0000 (12:52 -0700)
14 files changed:
lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
lib/lufa/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
lib/lufa/Demos/Device/ClassDriver/VirtualSerialMassStorage/VirtualSerialMassStorage.c
lib/lufa/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c
lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h
lib/lufa/LUFA/Drivers/USB/Class/Device/CDCClassDevice.c
lib/lufa/LUFA/Drivers/USB/Class/Device/CDCClassDevice.h
lib/lufa/LUFA/Drivers/USB/Class/Device/PrinterClassDevice.c
lib/lufa/LUFA/Drivers/USB/Class/Device/PrinterClassDevice.h
lib/lufa/LUFA/Drivers/USB/Class/Host/CDCClassHost.c
lib/lufa/LUFA/Drivers/USB/Class/Host/CDCClassHost.h
lib/lufa/LUFA/Drivers/USB/Core/Events.c
lib/lufa/LUFA/Drivers/USB/Core/Events.h

index 9a7ff4725ef783cb3aae2df1ceeff8546f7b3f6e..0210ff55c0660797e3cdb3a4f91b44f71aef00e6 100644 (file)
@@ -231,12 +231,14 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C
        */
        bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
 
+       (void)HostReady;
+
        if (CDCInterfaceInfo == &VirtualSerial1_CDC_Interface)
        {
-               // CDC interface 1's host is ready to send/receive data
+               // CDC interface 1's host is ready to send/receive data if HostReady is true
        }
        else
        {
-               // CDC interface 2's host is ready to send/receive data
+               // CDC interface 2's host is ready to send/receive data if HostReady is true
        }
 }
index a3d419ae5c0194123f98707ca08a9181a7b91bc2..3a943e8c18b07b4fc94a201d9fa629fc5c7dbcab 100644 (file)
@@ -199,4 +199,6 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C
           in the pending data from the USB endpoints.
        */
        bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
+
+       (void)HostReady;
 }
index f298e39cb81dba9b9a18f5c8ffa41641868bd40f..c8b1dfd2dc56368db2b3766fdb58ed1a20606601 100644 (file)
@@ -238,6 +238,8 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C
           in the pending data from the USB endpoints.
        */
        bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
+
+       (void)HostReady;
 }
 
 /** Mass Storage class driver callback function the reception of SCSI commands from the host, which must be processed.
index 134958060485baea90fb55cd107e238ac50902d3..c299723bb38801d33bd06e13717750ecd98d61b1 100644 (file)
@@ -279,4 +279,6 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C
           in the pending data from the USB endpoints.
        */
        bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
+
+       (void)HostReady;
 }
index 08cbeb7061186734099490b57b48816cc4d873d1..eb3aa5710812228f44afc62ae96fe1d70c88e5c5 100644 (file)
@@ -188,7 +188,7 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn
        return true;
 }
 
-void Audio_Device_Event_Stub(void)
+void Audio_Device_Event_Stub(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo)
 {
 
 }
index 920281be59dd8280171d67075e93836a6f445c13..91938af8cc544294932cc47305b4d53a8ea013bd 100644 (file)
        #if !defined(__DOXYGEN__)
                /* Function Prototypes: */
                        #if defined(__INCLUDE_FROM_AUDIO_DEVICE_C)
-                               void Audio_Device_Event_Stub(void);
+                               void Audio_Device_Event_Stub(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo);
 
                                void EVENT_Audio_Device_StreamStartStop(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo)
                                                                        ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1) ATTR_ALIAS(Audio_Device_Event_Stub);
index 867548c00ba20f4149136003faee62fe615494d0..93930bc99edf2eb1be148ed80b6ad7dab5e85d4c 100644 (file)
@@ -353,10 +353,15 @@ static int CDC_Device_getchar_Blocking(FILE* Stream)
 }
 #endif
 
-void CDC_Device_Event_Stub(void)
+void CDC_Device_Event_Stub(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo)
 {
 
 }
 
+void CDC_Device_Event_Stub_2(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo, const uint8_t _1)
+{
+       CDC_Device_Event_Stub(CDCInterfaceInfo);
+}
+
 #endif
 
index f9a53851a5b412a1b780cfc8a4a6bb26f883ca28..55dbbc7266fca61bc7962970d5a37520689b2262 100644 (file)
                                static int CDC_Device_getchar_Blocking(FILE* Stream) ATTR_NON_NULL_PTR_ARG(1);
                                #endif
 
-                               void CDC_Device_Event_Stub(void);
+                               void CDC_Device_Event_Stub(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo);
+                               void CDC_Device_Event_Stub_2(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo, const uint8_t _1);
 
                                void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo)
                                                                          ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1) ATTR_ALIAS(CDC_Device_Event_Stub);
                                                                             ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1) ATTR_ALIAS(CDC_Device_Event_Stub);
                                void EVENT_CDC_Device_BreakSent(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo,
                                                                const uint8_t Duration) ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1)
-                                                               ATTR_ALIAS(CDC_Device_Event_Stub);
+                                                               ATTR_ALIAS(CDC_Device_Event_Stub_2);
                        #endif
 
        #endif
index 7209c452dcde5f1534fdbb76b3d17a4d53a92de9..668b138b7b816a4f858ccf77a874277cc60d1517 100644 (file)
@@ -305,7 +305,7 @@ static int PRNT_Device_getchar_Blocking(FILE* Stream)
 }
 #endif
 
-void PRNT_Device_Event_Stub(void)
+void PRNT_Device_Event_Stub(USB_ClassInfo_PRNT_Device_t* const PRNTInterfaceInfo)
 {
 
 }
index 5ac5279351365150c1beaee7923de973d154a92e..d850842d84239ed874609ed4b72fd87fcac3a0b4 100644 (file)
                                static int PRNT_Device_getchar_Blocking(FILE* Stream) ATTR_NON_NULL_PTR_ARG(1);
                                #endif
 
-                               void PRNT_Device_Event_Stub(void);
+                               void PRNT_Device_Event_Stub(USB_ClassInfo_PRNT_Device_t* const PRNTInterfaceInfo);
 
                                void EVENT_PRNT_Device_SoftReset(USB_ClassInfo_PRNT_Device_t* const PRNTInterfaceInfo)
                                                                 ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1) ATTR_ALIAS(PRNT_Device_Event_Stub);
index af9ed96e247b6d0cb09c47cb4874b214536d2fe0..cc93f96010c1fc20f5f41f029679b1f276cce654 100644 (file)
@@ -503,7 +503,7 @@ static int CDC_Host_getchar_Blocking(FILE* Stream)
 }
 #endif
 
-void CDC_Host_Event_Stub(void)
+void CDC_Host_Event_Stub(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo)
 {
 
 }
index f5cc4906ba13f1889ae3fdba44f16d1e4b58ec10..8d0d89a03e37bf3f9627c34f356f862a7716a0bf 100644 (file)
                                static int CDC_Host_getchar_Blocking(FILE* Stream) ATTR_NON_NULL_PTR_ARG(1);
                                #endif
 
-                               void CDC_Host_Event_Stub(void);
+                               void CDC_Host_Event_Stub(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo);
 
                                void EVENT_CDC_Host_ControLineStateChanged(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo)
                                                                           ATTR_WEAK ATTR_NON_NULL_PTR_ARG(1) ATTR_ALIAS(CDC_Host_Event_Stub);
index 186557956a1c7a6d68d211222e032614056efc50..e05fd7419448e86be1c148c7bdd7140801e09ec3 100644 (file)
@@ -37,3 +37,12 @@ void USB_Event_Stub(void)
 
 }
 
+void USB_Event_Stub_2(const uint8_t _1)
+{
+       USB_Event_Stub();
+}
+
+void USB_Event_Stub_3(const uint8_t _1, const uint8_t _2)
+{
+       USB_Event_Stub();
+}
index 91fb31b6205a6f5df5c1c910ce63ac61c1d7d606..d37bb3065ae54490d33ee95cc4b8ddff406ef68e 100644 (file)
                /* Function Prototypes: */
                        #if defined(__INCLUDE_FROM_EVENTS_C)
                                void USB_Event_Stub(void);
+                               void USB_Event_Stub_2(const uint8_t _1);
+                               void USB_Event_Stub_3(const uint8_t _1, const uint8_t _2);
 
                                #if defined(USB_CAN_BE_BOTH)
                                        void EVENT_USB_UIDChange(void) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
                                #endif
 
                                #if defined(USB_CAN_BE_HOST)
-                                       void EVENT_USB_Host_HostError(const uint8_t ErrorCode) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
+                                       void EVENT_USB_Host_HostError(const uint8_t ErrorCode) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub_2);
                                        void EVENT_USB_Host_DeviceAttached(void) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
                                        void EVENT_USB_Host_DeviceUnattached(void) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
                                        void EVENT_USB_Host_DeviceEnumerationComplete(void) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
                                        void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode,
                                                                 const uint8_t SubErrorCode)
-                                                                                   ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
+                                                                                   ATTR_WEAK ATTR_ALIAS(USB_Event_Stub_3);
                                        void EVENT_USB_Host_StartOfFrame(void) ATTR_WEAK ATTR_ALIAS(USB_Event_Stub);
                                #endif