Commit 8f4f48d9 authored by Dean Camera's avatar Dean Camera
Browse files

Add architecture guards to all architecture-specific files, so that they can...

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.
parent d4b45e85
......@@ -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
......@@ -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
......@@ -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
......@@ -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
......@@ -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
......@@ -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
......@@ -28,6 +28,7 @@
this software.
*/
#if defined(__AVR32__)
#include <avr32/io.h>
.section .exception_handlers, "ax", @progbits
......@@ -123,3 +124,5 @@ Autovector_Table:
.word ((AVR32_INTC_INT0 + \Level) << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (Exception_INT\Level - EVBA_Table)
.endr
// === END OF GENERAL INTERRUPT HANDLER OFFSET TABLE ===
#endif
......@@ -28,6 +28,9 @@
this software.
*/
#include "../../Common/Common.h"
#if (ARCH == ARCH_UC3)
#define __INCLUDE_FROM_INTMANAGEMENT_C
#include "InterruptManagement.h"
......@@ -62,3 +65,4 @@ void INTC_Init(void)
__builtin_mtsr(AVR32_EVBA, (uintptr_t)&EVBA_Table);
}
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment