Update Mouse demo to support the UC3 devices in the MultiArchDemos branch.

This commit is contained in:
Dean Camera 2011-06-20 14:46:09 +00:00
parent ca9f89ce82
commit 3bd36f811c
5 changed files with 582 additions and 34 deletions

View file

@ -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