diff options
Diffstat (limited to 'LUFA/Common')
-rw-r--r-- | LUFA/Common/Architectures.h | 5 | ||||
-rw-r--r-- | LUFA/Common/BoardTypes.h | 3 | ||||
-rw-r--r-- | LUFA/Common/Common.h | 11 |
3 files changed, 18 insertions, 1 deletions
diff --git a/LUFA/Common/Architectures.h b/LUFA/Common/Architectures.h index 85f0d39bd..d34ad8cb8 100644 --- a/LUFA/Common/Architectures.h +++ b/LUFA/Common/Architectures.h @@ -62,8 +62,11 @@ /* Public Interface - May be used in end-application: */
/* Macros: */
/** Selects the Atmel 8-bit AVR (AT90USB* and ATMEGA*U* chips) architecture. */
- #define ARCH_AVR8 1
+ #define ARCH_AVR8 0
+ /** Selects the Atmel 32-bit UC3B AVR (AT32UC3B* chips) architecture. */
+ #define ARCH_UC3B 1
+
#if !defined(__DOXYGEN__)
#define ARCH_ ARCH_AVR8
diff --git a/LUFA/Common/BoardTypes.h b/LUFA/Common/BoardTypes.h index 41dc490e1..2644685cd 100644 --- a/LUFA/Common/BoardTypes.h +++ b/LUFA/Common/BoardTypes.h @@ -144,6 +144,9 @@ /** Selects the Sparkfun ATMEGA8U2 specific board drivers, including the driver for the board LEDs. */ #define BOARD_SPARKFUN8U2 26 + /** Selects the Atmel EVK1101 specific board drivers, including the Button, Joystick and LED drivers. */ + #define BOARD_EVK1101 27 + #if !defined(__DOXYGEN__) #define BOARD_ BOARD_NONE diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 114f566b2..4efa27ecb 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -67,6 +67,7 @@ #include <stdint.h> #include <stdbool.h> #include <string.h> + #include <stddef.h> #include "Architectures.h" #include "Attributes.h" @@ -81,6 +82,16 @@ #include <avr/boot.h> #include <util/atomic.h> #include <util/delay.h> + + typedef uint8_t uintN_t; + typedef int8_t intN_t; + #elif (ARCH == ARCH_UC3B) + #include <avr32/io.h> + + typedef uint32_t uintN_t; + typedef int32_t intN_t; + + #warning The UC3B architecture support is currently experimental and incomplete! #endif /* Public Interface - May be used in end-application: */ |