forked from mirror/qmk_firmware
Add architecture guards to all architecture-specific files, so that they can be bulk-added to existing IDE projects without having to exclude unused architecture files.
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -45,3 +48,4 @@ void USB_Device_SendRemoteWakeup(void)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -229,3 +232,4 @@ uint8_t Endpoint_Null_Stream(uint16_t Length,
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -173,3 +176,4 @@ uint8_t Endpoint_WaitUntilReady(void)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -292,3 +295,4 @@ static void USB_Host_ResetDevice(void)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -160,3 +163,4 @@ uint8_t Pipe_Null_Stream(uint16_t Length,
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
@@ -178,3 +181,4 @@ uint8_t Pipe_WaitUntilReady(void)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#define __INCLUDE_FROM_USB_CONTROLLER_C
|
||||
#include "../USBController.h"
|
||||
@@ -217,3 +220,4 @@ static void USB_Init_Host(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_UC3)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBInterrupt.h"
|
||||
|
||||
@@ -223,3 +226,4 @@ ISR(USB_COM_vect)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user