aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-02-20 17:53:17 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-02-20 17:53:17 +0000
commitcad5e9ffca70f4f5d3b486049088fd77dfa8f0ca (patch)
treef51b717df79e71660ad881487bebf8953d10d823 /LUFA/Common
parentf3ec62b5c689d9c66b07a57df76ca83881ce3fe3 (diff)
downloadlufa-cad5e9ffca70f4f5d3b486049088fd77dfa8f0ca.tar.gz
lufa-cad5e9ffca70f4f5d3b486049088fd77dfa8f0ca.tar.bz2
lufa-cad5e9ffca70f4f5d3b486049088fd77dfa8f0ca.zip
Added start of a port of the core USB driver code to the AVR32 UC3B architecture.
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 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: */