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/TempDataLogger/TempDataLogger.c | 2 ++ Projects/TempDataLogger/TempDataLogger.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Projects/TempDataLogger') diff --git a/Projects/TempDataLogger/TempDataLogger.c b/Projects/TempDataLogger/TempDataLogger.c index 415ad9f50..7590aeea3 100644 --- a/Projects/TempDataLogger/TempDataLogger.c +++ b/Projects/TempDataLogger/TempDataLogger.c @@ -190,12 +190,14 @@ void CloseLogFile(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/TempDataLogger/TempDataLogger.h b/Projects/TempDataLogger/TempDataLogger.h index 21373f4a7..86364f4e3 100644 --- a/Projects/TempDataLogger/TempDataLogger.h +++ b/Projects/TempDataLogger/TempDataLogger.h @@ -50,11 +50,12 @@ #include "Lib/FATFs/ff.h" #include "Lib/DS1307.h" #include "Config/AppConfig.h" - + #include #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