From 151a1c5888f8806d7e2aaf6f29cfb6deae8321ae Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 19 May 2013 22:59:46 +0200 Subject: Port the device mode demos to the XMEGA architecture where applicable. --- Demos/Device/LowLevel/AudioInput/AudioInput.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.c') diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.c b/Demos/Device/LowLevel/AudioInput/AudioInput.c index 1544f0964..6c7bd1df4 100644 --- a/Demos/Device/LowLevel/AudioInput/AudioInput.c +++ b/Demos/Device/LowLevel/AudioInput/AudioInput.c @@ -62,12 +62,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(); -- cgit v1.2.3