diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-22 11:44:34 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-22 11:44:34 +0000 |
commit | aae20139b90521cf1d1b17fdcb3ff9d42ecdf937 (patch) | |
tree | c74b83691225a38b1fac5a78d83740081c441043 /LUFA/Common/Common.h | |
parent | d2851b335106293e5f95107226b5deeed712a69c (diff) | |
download | lufa-aae20139b90521cf1d1b17fdcb3ff9d42ecdf937.tar.gz lufa-aae20139b90521cf1d1b17fdcb3ff9d42ecdf937.tar.bz2 lufa-aae20139b90521cf1d1b17fdcb3ff9d42ecdf937.zip |
Add drivers for the EVK1101 - begin full port to the AVR32 UC3B line of AVRs.
Diffstat (limited to 'LUFA/Common/Common.h')
-rw-r--r-- | LUFA/Common/Common.h | 21 |
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
/** @} */
|