/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.android" caption="Android Accessory Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.audio_input" caption="Audio Input Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Create a stdio stream for the serial port for stdin and stdout */
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
#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: */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.audio_output" caption="Audio Output Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.keyboard" caption="Keyboard HID Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.midi" caption="MIDI Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.ms" caption="Mass Storage Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.mouse" caption="Mouse HID Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.printer" caption="Printer Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.rndis" caption="RNDIS Ethernet Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.si" caption="Still Image Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
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;
-
+
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"));
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.class.cdc" caption="Virtual Serial CDC Host Demo (Class Driver APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.android" caption="Android Accessory Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_input" caption="Audio Input Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
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
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.audio_output" caption="Audio Output Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.generic_hid" caption="Generic HID Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.keyboard" caption="Keyboard HID Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
MIDIEvent.Data2, MIDIEvent.Data3);
}
}
-
+
Pipe_Freeze();
Pipe_SelectPipe(MIDI_DATA_OUT_PIPE);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.midi" caption="MIDI Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.ms" caption="Mass Storage Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.mouse" caption="Mouse HID Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\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
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.printer" caption="Printer Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.rndis" caption="RNDIS Ethernet Host Demo (Low Level APIs)">\r
/** 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 */
- CLKPR = (1 << CLKPCE);
- CLKPR = 0;
+ /* Disable clock division */
+ clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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. */
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.si" caption="Still Image Host Demo (Low Level APIs)">\r
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
#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"
<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
- <config name="lufa.drivers.board.name" value="usbkey"/>\r
+ <config name="lufa.drivers.board.name" value="none"/>\r
\r
- <build type="define" name="F_CPU" value="8000000UL"/>\r
- <build type="define" name="F_USB" value="8000000UL"/>\r
+ <build type="define" name="F_CPU" value="16000000UL"/>\r
+ <build type="define" name="F_USB" value="16000000UL"/>\r
</project>\r
\r
<module type="application" id="lufa.demos.host.lowlevel.cdc" caption="Virtual Serial CDC Host Demo (Low Level APIs)">\r