projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
65a8d68
)
Pseudo-port the host mode demos for possible later multi-arch support.
author
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 19 May 2013 20:40:17 +0000
(22:40 +0200)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 19 May 2013 20:40:17 +0000
(22:40 +0200)
87 files changed:
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AndroidAccessoryHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioInputHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/AudioOutputHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/JoystickHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MassStorageHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/MouseHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/MouseHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/RNDISEthernetHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/VirtualSerialHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AndroidAccessoryHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioInputHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/AudioOutputHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/JoystickHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/KeyboardHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MassStorageHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHost/MouseHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHost/MouseHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MouseHostWithParser/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/RNDISEthernetHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/asf.xml
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/asf.xml
patch
|
blob
|
blame
|
history
diff --git
a/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
b/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
index
d103b5d
..
a4248e2
100644
(file)
--- a/
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
+++ b/
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
@@
-91,12
+91,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.h
b/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.h
index
d0abfef
..
58b18e9
100644
(file)
--- a/
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.h
+++ b/
Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/AndroidAccessoryHost/asf.xml
b/Demos/Host/ClassDriver/AndroidAccessoryHost/asf.xml
index
19c6348
..
c31e663
100644
(file)
--- a/
Demos/Host/ClassDriver/AndroidAccessoryHost/asf.xml
+++ b/
Demos/Host/ClassDriver/AndroidAccessoryHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Android Accessory Host Demo (Class Driver APIs)" id="lufa.demos.host.class.android.example">
\r
+ <project caption="Android Accessory Host Demo (Class Driver APIs)" id="lufa.demos.host.class.android.example
.avr8
">
\r
<require idref="lufa.demos.host.class.android"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.android"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.android" caption="Android Accessory Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.android" caption="Android Accessory Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c
b/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c
index
bc6ade8
..
fe02356
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c
+++ b/
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c
@@
-106,12
+106,14
@@
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.h
b/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.h
index
b802a58
..
3da8d88
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.h
+++ b/
Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/AudioInputHost/asf.xml
b/Demos/Host/ClassDriver/AudioInputHost/asf.xml
index
5c28af9
..
ac0d067
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioInputHost/asf.xml
+++ b/
Demos/Host/ClassDriver/AudioInputHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Audio Input Host Demo (Class Driver APIs)" id="lufa.demos.host.class.audio_input.example">
\r
+ <project caption="Audio Input Host Demo (Class Driver APIs)" id="lufa.demos.host.class.audio_input.example
.avr8
">
\r
<require idref="lufa.demos.host.class.audio_input"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.audio_input"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.audio_input" caption="Audio Input Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.audio_input" caption="Audio Input Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
b/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
index
30e60e5
..
6faa8fe
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
+++ b/
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.c
@@
-111,12
+111,14
@@
ISR(TIMER0_COMPA_vect, ISR_BLOCK)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
@@
-128,9
+130,9
@@
void SetupHardware(void)
/* Create a stdio stream for the serial port for stdin and stdout */
Serial_CreateStream(NULL);
/* Create a stdio stream for the serial port for stdin and stdout */
Serial_CreateStream(NULL);
-
+
/* Start the ADC conversion in free running mode */
/* Start the ADC conversion in free running mode */
- ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_GET_CHANNEL_MASK(MIC_IN_ADC_CHANNEL));
+ ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_GET_CHANNEL_MASK(MIC_IN_ADC_CHANNEL));
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and
diff --git
a/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.h
b/Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.h
index
35f881c
..
543f88d
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.h
+++ b/
Demos/Host/ClassDriver/AudioOutputHost/AudioOutputHost.h
@@
-50,7
+50,8
@@
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/USB/USB.h>
-
+ #include <LUFA/Platform/Platform.h>
+
#include "Config/AppConfig.h"
/* Macros: */
#include "Config/AppConfig.h"
/* Macros: */
diff --git
a/Demos/Host/ClassDriver/AudioOutputHost/asf.xml
b/Demos/Host/ClassDriver/AudioOutputHost/asf.xml
index
19f915c
..
5b53faf
100644
(file)
--- a/
Demos/Host/ClassDriver/AudioOutputHost/asf.xml
+++ b/
Demos/Host/ClassDriver/AudioOutputHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Audio Output Host Demo (Class Driver APIs)" id="lufa.demos.host.class.audio_output.example">
\r
+ <project caption="Audio Output Host Demo (Class Driver APIs)" id="lufa.demos.host.class.audio_output.example
.avr8
">
\r
<require idref="lufa.demos.host.class.audio_output"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.audio_output"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.audio_output" caption="Audio Output Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.audio_output" caption="Audio Output Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
index
e2f49bc
..
dc0532e
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
@@
-87,12
+87,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
index
e290407
..
b66216e
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/asf.xml
b/Demos/Host/ClassDriver/JoystickHostWithParser/asf.xml
index
29eb917
..
54a5a2c
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/asf.xml
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Joystick HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.joystick_parser.example">
\r
+ <project caption="Joystick HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.joystick_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.class.joystick_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.joystick_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.joystick_parser" caption="Joystick HID (with parser) Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.joystick_parser" caption="Joystick HID (with parser) Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
index
95b96cd
..
ee86cfc
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
+++ b/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
@@
-83,12
+83,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
index
e890df4
..
aaf0477
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
+++ b/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/asf.xml
b/Demos/Host/ClassDriver/KeyboardHost/asf.xml
index
7676206
..
f9d6067
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/asf.xml
+++ b/
Demos/Host/ClassDriver/KeyboardHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Keyboard HID Host Demo (Class Driver APIs)" id="lufa.demos.host.class.keyboard.example">
\r
+ <project caption="Keyboard HID Host Demo (Class Driver APIs)" id="lufa.demos.host.class.keyboard.example
.avr8
">
\r
<require idref="lufa.demos.host.class.keyboard"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.keyboard"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.keyboard" caption="Keyboard HID Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.keyboard" caption="Keyboard HID Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
index
58c5029
..
c47d719
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-87,12
+87,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
b/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
index
63078fb
..
643e2f3
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/asf.xml
b/Demos/Host/ClassDriver/KeyboardHostWithParser/asf.xml
index
c7352f6
..
fdd3e79
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/asf.xml
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Keyboard HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.keyboard_parser.example">
\r
+ <project caption="Keyboard HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.keyboard_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.class.keyboard_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.keyboard_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.keyboard_parser" caption="Keyboard HID (with parser) Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.keyboard_parser" caption="Keyboard HID (with parser) Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
index
6e8c3e2
..
1160f63
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
+++ b/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
@@
-82,12
+82,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
index
1b8619d
..
db1aaf6
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
+++ b/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
@@
-50,6
+50,7
@@
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/MIDIHost/asf.xml
b/Demos/Host/ClassDriver/MIDIHost/asf.xml
index
3ae82cb
..
b52521f
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/asf.xml
+++ b/
Demos/Host/ClassDriver/MIDIHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="MIDI Host Demo (Class Driver APIs)" id="lufa.demos.host.class.midi.example">
\r
+ <project caption="MIDI Host Demo (Class Driver APIs)" id="lufa.demos.host.class.midi.example
.avr8
">
\r
<require idref="lufa.demos.host.class.midi"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.midi"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.midi" caption="MIDI Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.midi" caption="MIDI Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
index
a09ae54
..
ead53a8
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
@@
-82,12
+82,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
index
d3a906a
..
519aad7
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
@@
-49,6
+49,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/asf.xml
b/Demos/Host/ClassDriver/MassStorageHost/asf.xml
index
7eb2a6b
..
dbc871e
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/asf.xml
+++ b/
Demos/Host/ClassDriver/MassStorageHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mass Storage Host Demo (Class Driver APIs)" id="lufa.demos.host.class.ms.example">
\r
+ <project caption="Mass Storage Host Demo (Class Driver APIs)" id="lufa.demos.host.class.ms.example
.avr8
">
\r
<require idref="lufa.demos.host.class.ms"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.ms"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.ms" caption="Mass Storage Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.ms" caption="Mass Storage Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/MouseHost/MouseHost.c
b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
index
e565902
..
7b3d20b
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/MouseHost.c
+++ b/
Demos/Host/ClassDriver/MouseHost/MouseHost.c
@@
-83,12
+83,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/MouseHost/MouseHost.h
b/Demos/Host/ClassDriver/MouseHost/MouseHost.h
index
d6c50f9
..
b256641
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/MouseHost.h
+++ b/
Demos/Host/ClassDriver/MouseHost/MouseHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/MouseHost/asf.xml
b/Demos/Host/ClassDriver/MouseHost/asf.xml
index
1bc0a31
..
ecc6218
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/asf.xml
+++ b/
Demos/Host/ClassDriver/MouseHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mouse HID Host Demo (Class Driver APIs)" id="lufa.demos.host.class.mouse.example">
\r
+ <project caption="Mouse HID Host Demo (Class Driver APIs)" id="lufa.demos.host.class.mouse.example
.avr8
">
\r
<require idref="lufa.demos.host.class.mouse"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.mouse"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.mouse" caption="Mouse HID Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.mouse" caption="Mouse HID Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
index
0ecab53
..
265a8f6
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
@@
-87,12
+87,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
index
cb5c313
..
d0dd9a9
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/asf.xml
b/Demos/Host/ClassDriver/MouseHostWithParser/asf.xml
index
c1a4755
..
a9ca34b
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/asf.xml
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mouse HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.mouse_parser.example">
\r
+ <project caption="Mouse HID (with parser) Host Demo (Class Driver APIs)" id="lufa.demos.host.class.mouse_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.class.mouse_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.mouse_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.mouse_parser" caption="Mouse HID (with parser) Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.mouse_parser" caption="Mouse HID (with parser) Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
b/Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
index
4c82291
..
3a19a7e
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
+++ b/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
@@
-82,12
+82,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
b/Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
index
0bbec9f
..
6d289d1
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
+++ b/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/PrinterHost/asf.xml
b/Demos/Host/ClassDriver/PrinterHost/asf.xml
index
69b4e13
..
fa704ff
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/asf.xml
+++ b/
Demos/Host/ClassDriver/PrinterHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Printer Host Demo (Class Driver APIs)" id="lufa.demos.host.class.printer.example">
\r
+ <project caption="Printer Host Demo (Class Driver APIs)" id="lufa.demos.host.class.printer.example
.avr8
">
\r
<require idref="lufa.demos.host.class.printer"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.printer"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.printer" caption="Printer Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.printer" caption="Printer Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
index
b512735
..
50e2e50
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
@@
-117,12
+117,14
@@
void RNDISHost_Task(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
index
602421c
..
965ff44
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/asf.xml
b/Demos/Host/ClassDriver/RNDISEthernetHost/asf.xml
index
5c55c5a
..
8199f2d
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/asf.xml
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="RNDIS Ethernet Host Demo (Class Driver APIs)" id="lufa.demos.host.class.rndis.example">
\r
+ <project caption="RNDIS Ethernet Host Demo (Class Driver APIs)" id="lufa.demos.host.class.rndis.example
.avr8
">
\r
<require idref="lufa.demos.host.class.rndis"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.rndis"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.rndis" caption="RNDIS Ethernet Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.rndis" caption="RNDIS Ethernet Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
index
35a98eb
..
a08be21
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
@@
-87,12
+87,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
index
abe0e05
..
e8110a6
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
+++ b/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/StillImageHost/asf.xml
b/Demos/Host/ClassDriver/StillImageHost/asf.xml
index
3703164
..
9471782
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/asf.xml
+++ b/
Demos/Host/ClassDriver/StillImageHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Still Image Host Demo (Class Driver APIs)" id="lufa.demos.host.class.si.example">
\r
+ <project caption="Still Image Host Demo (Class Driver APIs)" id="lufa.demos.host.class.si.example
.avr8
">
\r
<require idref="lufa.demos.host.class.si"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.si"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.si" caption="Still Image Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.si" caption="Still Image Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
b/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
index
13c8018
..
c20a7de
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
@@
-87,12
+87,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
@@
-170,17
+172,17
@@
void EVENT_USB_Host_DeviceEnumerationComplete(void)
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
return;
}
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
return;
}
-
+
VirtualSerial_CDC_Interface.State.LineEncoding.BaudRateBPS = 9600;
VirtualSerial_CDC_Interface.State.LineEncoding.CharFormat = CDC_LINEENCODING_OneStopBit;
VirtualSerial_CDC_Interface.State.LineEncoding.ParityType = CDC_PARITY_None;
VirtualSerial_CDC_Interface.State.LineEncoding.DataBits = 8;
VirtualSerial_CDC_Interface.State.LineEncoding.BaudRateBPS = 9600;
VirtualSerial_CDC_Interface.State.LineEncoding.CharFormat = CDC_LINEENCODING_OneStopBit;
VirtualSerial_CDC_Interface.State.LineEncoding.ParityType = CDC_PARITY_None;
VirtualSerial_CDC_Interface.State.LineEncoding.DataBits = 8;
-
+
if (CDC_Host_SetLineEncoding(&VirtualSerial_CDC_Interface))
{
puts_P(PSTR("Error Setting Device Line Encoding.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
if (CDC_Host_SetLineEncoding(&VirtualSerial_CDC_Interface))
{
puts_P(PSTR("Error Setting Device Line Encoding.\r\n"));
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
- return;
+ return;
}
puts_P(PSTR("CDC Device Enumerated.\r\n"));
}
puts_P(PSTR("CDC Device Enumerated.\r\n"));
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
b/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
index
4aec830
..
1c63166
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/asf.xml
b/Demos/Host/ClassDriver/VirtualSerialHost/asf.xml
index
67eb347
..
4d0ebb0
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/asf.xml
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Virtual Serial CDC Host Demo (Class Driver APIs)" id="lufa.demos.host.class.cdc.example">
\r
+ <project caption="Virtual Serial CDC Host Demo (Class Driver APIs)" id="lufa.demos.host.class.cdc.example
.avr8
">
\r
<require idref="lufa.demos.host.class.cdc"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.class.cdc"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.cdc" caption="Virtual Serial CDC Host Demo (Class Driver APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.class.cdc" caption="Virtual Serial CDC Host Demo (Class Driver APIs)">
\r
diff --git
a/Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.c
b/Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.c
index
72190a4
..
e84b877
100644
(file)
--- a/
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.c
+++ b/
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.c
@@
-58,12
+58,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.h
b/Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.h
index
5383d86
..
395206d
100644
(file)
--- a/
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.h
+++ b/
Demos/Host/LowLevel/AndroidAccessoryHost/AndroidAccessoryHost.h
@@
-52,6
+52,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/LowLevel/AndroidAccessoryHost/asf.xml
b/Demos/Host/LowLevel/AndroidAccessoryHost/asf.xml
index
0100f60
..
9d95cb5
100644
(file)
--- a/
Demos/Host/LowLevel/AndroidAccessoryHost/asf.xml
+++ b/
Demos/Host/LowLevel/AndroidAccessoryHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Android Accessory Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.android.example">
\r
+ <project caption="Android Accessory Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.android.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.android"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.android"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.android" caption="Android Accessory Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.android" caption="Android Accessory Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
b/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
index
9e6ddd3
..
a4d083b
100644
(file)
--- a/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
+++ b/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c
@@
-57,12
+57,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.h
b/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.h
index
febd6ea
..
abf1973
100644
(file)
--- a/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.h
+++ b/
Demos/Host/LowLevel/AudioInputHost/AudioInputHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/AudioInputHost/asf.xml
b/Demos/Host/LowLevel/AudioInputHost/asf.xml
index
f043fb9
..
6c565b3
100644
(file)
--- a/
Demos/Host/LowLevel/AudioInputHost/asf.xml
+++ b/
Demos/Host/LowLevel/AudioInputHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Audio Input Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.audio_input.example">
\r
+ <project caption="Audio Input Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.audio_input.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.audio_input"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.audio_input"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_input" caption="Audio Input Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_input" caption="Audio Input Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
b/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
index
dfe0609
..
5d62508
100644
(file)
--- a/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
+++ b/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.c
@@
-57,12
+57,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
@@
-76,7
+78,7
@@
void SetupHardware(void)
Serial_CreateStream(NULL);
/* Start the ADC conversion in free running mode */
Serial_CreateStream(NULL);
/* Start the ADC conversion in free running mode */
- ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_GET_CHANNEL_MASK(MIC_IN_ADC_CHANNEL));
+ ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_GET_CHANNEL_MASK(MIC_IN_ADC_CHANNEL));
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and
diff --git
a/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h
b/Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h
index
58655ba
..
3c4ef5b
100644
(file)
--- a/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h
+++ b/
Demos/Host/LowLevel/AudioOutputHost/AudioOutputHost.h
@@
-50,6
+50,7
@@
#include <LUFA/Drivers/Peripheral/ADC.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Peripheral/ADC.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "Config/AppConfig.h"
#include "ConfigDescriptor.h"
#include "Config/AppConfig.h"
diff --git
a/Demos/Host/LowLevel/AudioOutputHost/asf.xml
b/Demos/Host/LowLevel/AudioOutputHost/asf.xml
index
2008324
..
a56c84d
100644
(file)
--- a/
Demos/Host/LowLevel/AudioOutputHost/asf.xml
+++ b/
Demos/Host/LowLevel/AudioOutputHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Audio Output Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.audio_output.example">
\r
+ <project caption="Audio Output Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.audio_output.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.audio_output"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.audio_output"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_output" caption="Audio Output Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_output" caption="Audio Output Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
index
3926204
..
35794df
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
+++ b/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
index
ac9cd24
..
8c05d30
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
+++ b/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/asf.xml
b/Demos/Host/LowLevel/GenericHIDHost/asf.xml
index
17cc78a
..
12df51f
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/asf.xml
+++ b/
Demos/Host/LowLevel/GenericHIDHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Generic HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.generic_hid.example">
\r
+ <project caption="Generic HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.generic_hid.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.generic_hid"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.generic_hid"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.generic_hid" caption="Generic HID Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.generic_hid" caption="Generic HID Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
index
bc5a457
..
35e3469
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
index
a6acd1a
..
90bc70f
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "HIDReport.h"
#include "ConfigDescriptor.h"
#include "HIDReport.h"
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/asf.xml
b/Demos/Host/LowLevel/JoystickHostWithParser/asf.xml
index
2450519
..
cf87706
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/asf.xml
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Joystick HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.joystick_parser.example">
\r
+ <project caption="Joystick HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.joystick_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.joystick_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.joystick_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.joystick_parser" caption="Joystick HID (with parser) Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.joystick_parser" caption="Joystick HID (with parser) Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
index
a5a24ab
..
f10191a
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
+++ b/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.h
b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.h
index
0f38db7
..
e11e63f
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.h
+++ b/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/KeyboardHost/asf.xml
b/Demos/Host/LowLevel/KeyboardHost/asf.xml
index
db3efd1
..
32a88af
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/asf.xml
+++ b/
Demos/Host/LowLevel/KeyboardHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Keyboard HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.keyboard.example">
\r
+ <project caption="Keyboard HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.keyboard.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.keyboard"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.keyboard"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.keyboard" caption="Keyboard HID Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.keyboard" caption="Keyboard HID Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
index
9587d71
..
e02d583
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
index
7d384d6
..
14a5693
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
@@
-43,6
+43,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "HIDReport.h"
#include "ConfigDescriptor.h"
#include "HIDReport.h"
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/asf.xml
b/Demos/Host/LowLevel/KeyboardHostWithParser/asf.xml
index
e6f343d
..
1b78197
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/asf.xml
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Keyboard HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.keyboard_parser.example">
\r
+ <project caption="Keyboard HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.keyboard_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.keyboard_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.keyboard_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.keyboard_parser" caption="Keyboard HID (with parser) Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.keyboard_parser" caption="Keyboard HID (with parser) Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
b/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
index
7cef442
..
620cbc9
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
+++ b/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
@@
-188,7
+190,7
@@
void MIDIHost_Task(void)
MIDIEvent.Data2, MIDIEvent.Data3);
}
}
MIDIEvent.Data2, MIDIEvent.Data3);
}
}
-
+
Pipe_Freeze();
Pipe_SelectPipe(MIDI_DATA_OUT_PIPE);
Pipe_Freeze();
Pipe_SelectPipe(MIDI_DATA_OUT_PIPE);
diff --git
a/Demos/Host/LowLevel/MIDIHost/MIDIHost.h
b/Demos/Host/LowLevel/MIDIHost/MIDIHost.h
index
73933c0
..
fd25001
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
+++ b/
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
@@
-50,6
+50,7
@@
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Board/Joystick.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/MIDIHost/asf.xml
b/Demos/Host/LowLevel/MIDIHost/asf.xml
index
1ecde00
..
862f719
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/asf.xml
+++ b/
Demos/Host/LowLevel/MIDIHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="MIDI Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.midi.example">
\r
+ <project caption="MIDI Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.midi.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.midi"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.midi"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.midi" caption="MIDI Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.midi" caption="MIDI Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
index
b375798
..
ff32da5
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
@@
-63,12
+63,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
index
2229ff3
..
429193d
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
+++ b/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
@@
-55,6
+55,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Buttons.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/LowLevel/MassStorageHost/asf.xml
b/Demos/Host/LowLevel/MassStorageHost/asf.xml
index
fd93fc6
..
1ee5870
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/asf.xml
+++ b/
Demos/Host/LowLevel/MassStorageHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mass Storage Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.ms.example">
\r
+ <project caption="Mass Storage Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.ms.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.ms"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.ms"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.ms" caption="Mass Storage Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.ms" caption="Mass Storage Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.c
b/Demos/Host/LowLevel/MouseHost/MouseHost.c
index
b24d1ae
..
a9225a1
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.c
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.h
b/Demos/Host/LowLevel/MouseHost/MouseHost.h
index
6bbb71a
..
4dddd20
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.h
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/MouseHost/asf.xml
b/Demos/Host/LowLevel/MouseHost/asf.xml
index
8fca686
..
30aa33d
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/asf.xml
+++ b/
Demos/Host/LowLevel/MouseHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mouse HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.mouse.example">
\r
+ <project caption="Mouse HID Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.mouse.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.mouse"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.mouse"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.mouse" caption="Mouse HID Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.mouse" caption="Mouse HID Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
index
81c7343
..
438c6fe
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
index
8d907d7
..
d0744e5
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "HIDReport.h"
#include "ConfigDescriptor.h"
#include "HIDReport.h"
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/asf.xml
b/Demos/Host/LowLevel/MouseHostWithParser/asf.xml
index
afc321a
..
f5a76a3
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/asf.xml
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Mouse HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.mouse_parser.example">
\r
+ <project caption="Mouse HID (with parser) Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.mouse_parser.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.mouse_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.mouse_parser"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.mouse_parser" caption="Mouse HID (with parser) Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.mouse_parser" caption="Mouse HID (with parser) Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/PrinterHost/PrinterHost.c
b/Demos/Host/LowLevel/PrinterHost/PrinterHost.c
index
31b0145
..
c028f28
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
+++ b/
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/PrinterHost/PrinterHost.h
b/Demos/Host/LowLevel/PrinterHost/PrinterHost.h
index
7998b98
..
69cfb91
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
+++ b/
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
@@
-52,6
+52,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/LowLevel/PrinterHost/asf.xml
b/Demos/Host/LowLevel/PrinterHost/asf.xml
index
abe73c5
..
f24a1e1
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/asf.xml
+++ b/
Demos/Host/LowLevel/PrinterHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Printer Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.printer.example">
\r
+ <project caption="Printer Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.printer.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.printer"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.printer"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.printer" caption="Printer Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.printer" caption="Printer Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
index
e92b314
..
d01bc3a
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
b/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
index
cb77075
..
9843b64
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "Lib/RNDISCommands.h"
#include "Lib/RNDISCommands.h"
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/asf.xml
b/Demos/Host/LowLevel/RNDISEthernetHost/asf.xml
index
fafffbf
..
7f64c84
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/asf.xml
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="RNDIS Ethernet Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.rndis.example">
\r
+ <project caption="RNDIS Ethernet Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.rndis.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.rndis"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.rndis"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.rndis" caption="RNDIS Ethernet Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.rndis" caption="RNDIS Ethernet Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
b/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
index
779827a
..
89e7996
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
@@
-59,13
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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 watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
- /* Disable
Clock D
ivision */
-
CLKPR = (1 << CLKPCE
);
- CLKPR = 0;
+ /* Disable
clock d
ivision */
+
clock_prescale_set(clock_div_1
);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/StillImageHost/StillImageHost.h
b/Demos/Host/LowLevel/StillImageHost/StillImageHost.h
index
8ce267d
..
2d2181c
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
+++ b/
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
@@
-51,6
+51,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
/* Macros: */
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
diff --git
a/Demos/Host/LowLevel/StillImageHost/asf.xml
b/Demos/Host/LowLevel/StillImageHost/asf.xml
index
5645c29
..
6592bf3
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/asf.xml
+++ b/
Demos/Host/LowLevel/StillImageHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Still Image Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.si.example">
\r
+ <project caption="Still Image Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.si.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.si"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.si"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.si" caption="Still Image Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.si" caption="Still Image Host Demo (Low Level APIs)">
\r
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
index
73a5b9c
..
59bd2b4
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
@@
-59,12
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(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);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
index
05d94a8
..
486aed1
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
@@
-48,6
+48,7
@@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
+ #include <LUFA/Platform/Platform.h>
#include "ConfigDescriptor.h"
#include "ConfigDescriptor.h"
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/asf.xml
b/Demos/Host/LowLevel/VirtualSerialHost/asf.xml
index
783862d
..
cfe4e2f
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/asf.xml
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/asf.xml
@@
-1,14
+1,14
@@
<asf xmlversion="1.0">
\r
<asf xmlversion="1.0">
\r
- <project caption="Virtual Serial CDC Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.cdc.example">
\r
+ <project caption="Virtual Serial CDC Host Demo (Low Level APIs)" id="lufa.demos.host.lowlevel.cdc.example
.avr8
">
\r
<require idref="lufa.demos.host.lowlevel.cdc"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
<require idref="lufa.demos.host.lowlevel.cdc"/>
\r
<require idref="lufa.boards.dummy.avr8"/>
\r
<generator value="as5_8"/>
\r
\r
<device-support value="at90usb1287"/>
\r
- <config name="lufa.drivers.board.name" value="
usbkey
"/>
\r
+ <config name="lufa.drivers.board.name" value="
none
"/>
\r
\r
\r
- <build type="define" name="F_CPU" value="
8
000000UL"/>
\r
- <build type="define" name="F_USB" value="
8
000000UL"/>
\r
+ <build type="define" name="F_CPU" value="
16
000000UL"/>
\r
+ <build type="define" name="F_USB" value="
16
000000UL"/>
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.cdc" caption="Virtual Serial CDC Host Demo (Low Level APIs)">
\r
</project>
\r
\r
<module type="application" id="lufa.demos.host.lowlevel.cdc" caption="Virtual Serial CDC Host Demo (Low Level APIs)">
\r