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. --- Projects/USBtoSerial/USBtoSerial.c | 2 ++ Projects/USBtoSerial/USBtoSerial.h | 1 + 2 files changed, 3 insertions(+) (limited to 'Projects/USBtoSerial') diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index 76e3cb837..6df906340 100644 --- a/Projects/USBtoSerial/USBtoSerial.c +++ b/Projects/USBtoSerial/USBtoSerial.c @@ -145,12 +145,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 */ LEDs_Init(); diff --git a/Projects/USBtoSerial/USBtoSerial.h b/Projects/USBtoSerial/USBtoSerial.h index d37a5405c..220500f91 100644 --- a/Projects/USBtoSerial/USBtoSerial.h +++ b/Projects/USBtoSerial/USBtoSerial.h @@ -48,6 +48,7 @@ #include #include #include + #include /* Macros: */ /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ -- cgit v1.2.3