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,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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dean Camera
						Dean Camera