diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-19 22:59:46 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-19 22:59:46 +0200 |
commit | 151a1c5888f8806d7e2aaf6f29cfb6deae8321ae (patch) | |
tree | e4425b77d971006c018a7061fbda64ec2eb3083a /Demos/Device/LowLevel/AudioInput | |
parent | 329629a316e31cc91c6b56c54d5a9a06ce55dea7 (diff) | |
download | lufa-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')
-rw-r--r-- | Demos/Device/LowLevel/AudioInput/AudioInput.c | 2 | ||||
-rw-r--r-- | Demos/Device/LowLevel/AudioInput/AudioInput.h | 1 | ||||
-rw-r--r-- | Demos/Device/LowLevel/AudioInput/asf.xml | 8 |
3 files changed, 7 insertions, 4 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(); diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.h b/Demos/Device/LowLevel/AudioInput/AudioInput.h index b7727a81b..6701f8ee5 100644 --- a/Demos/Device/LowLevel/AudioInput/AudioInput.h +++ b/Demos/Device/LowLevel/AudioInput/AudioInput.h @@ -49,6 +49,7 @@ #include <LUFA/Drivers/Board/LEDs.h> #include <LUFA/Drivers/Board/Buttons.h> #include <LUFA/Drivers/Peripheral/ADC.h> + #include <LUFA/Platform/Platform.h> /* Macros: */ /** Maximum audio sample value for the microphone input. */ diff --git a/Demos/Device/LowLevel/AudioInput/asf.xml b/Demos/Device/LowLevel/AudioInput/asf.xml index 767b3fd4a..3fdfb657a 100644 --- a/Demos/Device/LowLevel/AudioInput/asf.xml +++ b/Demos/Device/LowLevel/AudioInput/asf.xml @@ -1,14 +1,14 @@ <asf xmlversion="1.0">
- <project caption="Audio Input Device Demo (Low Level APIs)" id="lufa.demos.device.lowlevel.audio_input.example">
+ <project caption="Audio Input Device Demo (Low Level APIs)" id="lufa.demos.device.lowlevel.audio_input.example.avr8">
<require idref="lufa.demos.device.lowlevel.audio_input"/>
<require idref="lufa.boards.dummy.avr8"/>
<generator value="as5_8"/>
<device-support value="at90usb1287"/>
- <config name="lufa.drivers.board.name" value="usbkey"/>
+ <config name="lufa.drivers.board.name" value="none"/>
- <build type="define" name="F_CPU" value="8000000UL"/>
- <build type="define" name="F_USB" value="8000000UL"/>
+ <build type="define" name="F_CPU" value="16000000UL"/>
+ <build type="define" name="F_USB" value="16000000UL"/>
</project>
<module type="application" id="lufa.demos.device.lowlevel.audio_input" caption="Audio Input Device Demo (Low Level APIs)">
|