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_AVR8)
#define __INCLUDE_FROM_SERIAL_C
#include "../Serial.h"
@ -112,3 +115,5 @@ void Serial_CreateBlockingStream(FILE* Stream)
*Stream = (FILE)FDEV_SETUP_STREAM(Serial_putchar, Serial_getchar_Blocking, _FDEV_SETUP_RW);
}
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../Common/Common.h"
#if (ARCH == ARCH_AVR8)
#define __INCLUDE_FROM_TWI_C
#include "../TWI.h"
@ -201,3 +204,4 @@ uint8_t TWI_WritePacket(const uint8_t SlaveAddress,
return ErrorCode;
}
#endif

View file

@ -28,6 +28,9 @@
this software.
*/
#include "../../../Common/Common.h"
#if (ARCH == ARCH_XMEGA)
#define __INCLUDE_FROM_SERIAL_C
#include "../Serial.h"
@ -115,3 +118,5 @@ void Serial_CreateBlockingStream(FILE* Stream)
*Stream = (FILE)FDEV_SETUP_STREAM(Serial_putchar, Serial_getchar_Blocking, _FDEV_SETUP_RW);
}
#endif