diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-04-07 17:01:46 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-04-07 17:01:46 +0000 |
| commit | f07c41f6db3a81751283b0ba2fbbb873a6d6885e (patch) | |
| tree | 0c46f6a9f8d439a1edb59ae3088d369b914b3450 /LUFA/Platform | |
| parent | 92c83b2d234fa7b64501b14b05f3fc117fb37157 (diff) | |
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.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2136 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Platform')
| -rw-r--r-- | LUFA/Platform/UC3/Exception.S | 3 | ||||
| -rw-r--r-- | LUFA/Platform/UC3/InterruptManagement.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/LUFA/Platform/UC3/Exception.S b/LUFA/Platform/UC3/Exception.S index ddfe0098..50f52bdd 100644 --- a/LUFA/Platform/UC3/Exception.S +++ b/LUFA/Platform/UC3/Exception.S @@ -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 diff --git a/LUFA/Platform/UC3/InterruptManagement.c b/LUFA/Platform/UC3/InterruptManagement.c index 7d883c63..b4fd1984 100644 --- a/LUFA/Platform/UC3/InterruptManagement.c +++ b/LUFA/Platform/UC3/InterruptManagement.c @@ -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 |
