aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Common/Common.h')
-rw-r--r--LUFA/Common/Common.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h
index 2ddb58c8c..4052480dd 100644
--- a/LUFA/Common/Common.h
+++ b/LUFA/Common/Common.h
@@ -56,8 +56,17 @@
#define __COMMON_H__
/* Includes: */
- #include <avr/io.h>
-
+ #if defined(__AVR32__)
+ #include <avr32/io.h>
+ #include <stdint.h>
+
+ #include "Atomic.h"
+
+ #define PROGMEM
+ #else
+ #include <avr/io.h>
+ #endif
+
#include "FunctionAttributes.h"
#include "BoardTypes.h"
@@ -179,6 +188,14 @@
}
}
+ /* Type Defines: */
+ #if defined(__AVR32__)
+ typedef uint32_t uintN_t;
+ typedef int32_t intN_t;
+ #else
+ typedef uint8_t uintN_t;
+ typedef int8_t intN_t;
+ #endif
#endif
/** @} */