#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