aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/AudioInput/AudioInput.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-05-19 22:59:46 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-05-19 22:59:46 +0200
commit151a1c5888f8806d7e2aaf6f29cfb6deae8321ae (patch)
treee4425b77d971006c018a7061fbda64ec2eb3083a /Demos/Device/LowLevel/AudioInput/AudioInput.c
parent329629a316e31cc91c6b56c54d5a9a06ce55dea7 (diff)
downloadlufa-151a1c5888f8806d7e2aaf6f29cfb6deae8321ae.tar.gz
lufa-151a1c5888f8806d7e2aaf6f29cfb6deae8321ae.tar.bz2
lufa-151a1c5888f8806d7e2aaf6f29cfb6deae8321ae.zip
Port the device mode demos to the XMEGA architecture where applicable.
Diffstat (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.c')
-rw-r--r--Demos/Device/LowLevel/AudioInput/AudioInput.c2
1 files changed, 2 insertions, 0 deletions
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();