aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/Mouse/Mouse.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-06-20 14:46:09 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-06-20 14:46:09 +0000
commit3bd36f811c00b79ac35266460dbdcc0921821d4d (patch)
treec12846b0894de600c0a719ba6c0199d3149e08c3 /Demos/Device/ClassDriver/Mouse/Mouse.h
parentca9f89ce821db58532f1782da2b3d22e3ac961f3 (diff)
downloadlufa-3bd36f811c00b79ac35266460dbdcc0921821d4d.tar.gz
lufa-3bd36f811c00b79ac35266460dbdcc0921821d4d.tar.bz2
lufa-3bd36f811c00b79ac35266460dbdcc0921821d4d.zip
Update Mouse demo to support the UC3 devices in the MultiArchDemos branch.
Diffstat (limited to 'Demos/Device/ClassDriver/Mouse/Mouse.h')
-rw-r--r--Demos/Device/ClassDriver/Mouse/Mouse.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/Demos/Device/ClassDriver/Mouse/Mouse.h b/Demos/Device/ClassDriver/Mouse/Mouse.h
index c85932afb..6e1827512 100644
--- a/Demos/Device/ClassDriver/Mouse/Mouse.h
+++ b/Demos/Device/ClassDriver/Mouse/Mouse.h
@@ -37,22 +37,28 @@
#define _MOUSE_H_
/* Includes: */
- #include <avr/io.h>
- #include <avr/wdt.h>
- #include <avr/interrupt.h>
- #include <avr/power.h>
- #include <avr/interrupt.h>
- #include <stdbool.h>
- #include <string.h>
-
- #include "Descriptors.h"
-
- #include <LUFA/Version.h>
+ #include <LUFA/Common/Common.h>
#include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/USB/USB.h>
+ #if (ARCH == ARCH_AVR8)
+ #include <avr/io.h>
+ #include <avr/wdt.h>
+ #include <avr/interrupt.h>
+ #include <avr/power.h>
+ #include <avr/interrupt.h>
+ #include <stdbool.h>
+ #include <string.h>
+ #elif (ARCH == ARCH_UC3)
+ #include <LUFA/Platform/UC3/INTC.h>
+
+ #include <avr32/io.h>
+ #endif
+
+ #include "Descriptors.h"
+
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
#define LEDMASK_USB_NOTREADY LEDS_LED1