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:
Dean Camera 2012-04-07 17:01:46 +00:00
parent d4b45e8502
commit 8f4f48d963
28 changed files with 118 additions and 1 deletions

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h"
@ -42,3 +45,5 @@ void USB_Device_SendRemoteWakeup(void)
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h"
@ -269,3 +272,4 @@ uint8_t Endpoint_Null_Stream(uint16_t Length,
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h"
@ -145,3 +148,5 @@ uint8_t Endpoint_WaitUntilReady(void)
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h"
@ -35,3 +38,4 @@
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h"
@ -35,3 +38,4 @@
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#define __INCLUDE_FROM_USB_CONTROLLER_C
#include "../USBController.h"
@ -178,3 +181,4 @@ static void USB_Init_Device(void)
}
#endif
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_USB_DRIVER
#include "../USBInterrupt.h"
@ -101,3 +104,4 @@ ISR(USB_BUSEVENT_vect)
}
}
#endif