aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c')
-rw-r--r--LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
index 34e6415145..45477fd520 100644
--- a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
+++ b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
@@ -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