From 65a8d68c5708c8bc87628d9a25cf0a9d951379ea Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 19 May 2013 22:28:02 +0200 Subject: Pseudo-port the projects and dual role demos for possible later multi-arch support. --- Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c | 2 ++ Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h | 3 ++- Demos/DualRole/ClassDriver/MouseHostDevice/asf.xml | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'Demos/DualRole/ClassDriver/MouseHostDevice') diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c index 620e809b4..f7c3c01ce 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c @@ -68,12 +68,14 @@ int main(void) /** Configures the board hardware and chip peripherals for the demo's functionality. */ void SetupHardware(void) { +#if (ARCH == ARCH_AVR8) /* Disable watchdog if enabled by bootloader/fuses */ MCUSR &= ~(1 << WDRF); wdt_disable(); /* Disable clock division */ clock_prescale_set(clock_div_1); +#endif /* Hardware Initialization */ Serial_Init(9600, false); diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h index 48b6389ee..12699398a 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h @@ -50,6 +50,7 @@ #include #include #include + #include #include "Descriptors.h" #include "DeviceFunctions.h" @@ -70,7 +71,7 @@ /* Function Prototypes: */ void SetupHardware(void); - + void EVENT_USB_UIDChange(void); #endif diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/asf.xml b/Demos/DualRole/ClassDriver/MouseHostDevice/asf.xml index d2b4214bd..19a0905f0 100644 --- a/Demos/DualRole/ClassDriver/MouseHostDevice/asf.xml +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/asf.xml @@ -1,14 +1,14 @@ - + - + - - + + -- cgit v1.2.3