aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Common
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-02-20 17:53:17 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-02-20 17:53:17 +0000
commit09abdac002552a8b9d2ee80aba0beb7b4d968322 (patch)
treef51b717df79e71660ad881487bebf8953d10d823 /LUFA/Common
parent41cf625962daa66c0e40a49813b10fbacd2797d9 (diff)
Added start of a port of the core USB driver code to the AVR32 UC3B architecture.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1676 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Common')
-rw-r--r--LUFA/Common/Architectures.h5
-rw-r--r--LUFA/Common/BoardTypes.h3
-rw-r--r--LUFA/Common/Common.h11
3 files changed, 18 insertions, 1 deletions
diff --git a/LUFA/Common/Architectures.h b/LUFA/Common/Architectures.h
index 85f0d39b..d34ad8cb 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 41dc490e..2644685c 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 114f566b..4efa27ec 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: */