Add drivers for the EVK1101 - begin full port to the AVR32 UC3B line of AVRs.
[pub/lufa.git] / LUFA / Common / Common.h
index 2ddb58c..4052480 100644 (file)
 #define __COMMON_H__\r
 \r
        /* Includes: */\r
-               #include <avr/io.h>\r
-       \r
+               #if defined(__AVR32__)\r
+                       #include <avr32/io.h>\r
+                       #include <stdint.h>\r
+\r
+                       #include "Atomic.h"\r
+\r
+                       #define PROGMEM\r
+               #else\r
+                       #include <avr/io.h>\r
+               #endif\r
+\r
                #include "FunctionAttributes.h"\r
                #include "BoardTypes.h"\r
 \r
                                }\r
                        }\r
 \r
+               /* Type Defines: */\r
+                       #if defined(__AVR32__)\r
+                               typedef uint32_t uintN_t;\r
+                               typedef int32_t intN_t;\r
+                       #else\r
+                               typedef uint8_t uintN_t;\r
+                               typedef int8_t intN_t;\r
+                       #endif\r
 #endif\r
 \r
 /** @} */\r