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:
parent
d4b45e8502
commit
8f4f48d963
28 changed files with 118 additions and 1 deletions
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
|
@ -51,3 +54,4 @@ void USB_Device_SendRemoteWakeup(void)
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
|
@ -269,3 +272,4 @@ uint8_t Endpoint_Null_Stream(uint16_t Length,
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
|
@ -180,3 +183,4 @@ uint8_t Endpoint_WaitUntilReady(void)
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#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_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
|
@ -213,4 +216,6 @@ uint8_t Pipe_Null_Stream(uint16_t Length,
|
|||
#include "Template/Template_Pipe_RW.c"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBMode.h"
|
||||
|
||||
|
@ -179,3 +182,4 @@ uint8_t Pipe_WaitUntilReady(void)
|
|||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#define __INCLUDE_FROM_USB_CONTROLLER_C
|
||||
#include "../USBController.h"
|
||||
|
@ -260,3 +263,4 @@ static void USB_Init_Host(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
this software.
|
||||
*/
|
||||
|
||||
#include "../../../../Common/Common.h"
|
||||
#if (ARCH == ARCH_AVR8)
|
||||
|
||||
#define __INCLUDE_FROM_USB_DRIVER
|
||||
#include "../USBInterrupt.h"
|
||||
|
||||
|
@ -273,3 +276,5 @@ ISR(USB_COM_vect, ISR_BLOCK)
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue