projects
/
pub
/
lufa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
85aaaf8
)
USB_Init() no longer calls sei() to enable global interrupts - this must now be done...
author
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 28 Apr 2010 07:48:26 +0000
(07:48 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 28 Apr 2010 07:48:26 +0000
(07:48 +0000)
135 files changed:
Bootloaders/CDC/BootloaderCDC.c
patch
|
blob
|
blame
|
history
Bootloaders/CDC/BootloaderCDC.h
patch
|
blob
|
blame
|
history
Bootloaders/DFU/BootloaderDFU.c
patch
|
blob
|
blame
|
history
Bootloaders/DFU/BootloaderDFU.h
patch
|
blob
|
blame
|
history
Bootloaders/Incomplete/MIDI/BootloaderMIDI.c
patch
|
blob
|
blame
|
history
Bootloaders/Incomplete/MIDI/BootloaderMIDI.h
patch
|
blob
|
blame
|
history
Bootloaders/TeensyHID/TeensyHID.c
patch
|
blob
|
blame
|
history
Bootloaders/TeensyHID/TeensyHID.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioInput/AudioInput.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioInput/AudioInput.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/GenericHID/GenericHID.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/GenericHID/GenericHID.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Joystick/Joystick.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Joystick/Joystick.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Keyboard/Keyboard.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Keyboard/Keyboard.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MIDI/MIDI.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MIDI/MIDI.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/MassStorage.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorage/MassStorage.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Mouse/Mouse.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/Mouse/Mouse.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.h
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/Sideshow/Sideshow.c
patch
|
blob
|
blame
|
history
Demos/Device/Incomplete/Sideshow/Sideshow.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioInput/AudioInput.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioInput/AudioInput.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/AudioOutput/AudioOutput.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/GenericHID/GenericHID.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/GenericHID/GenericHID.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Joystick/Joystick.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Joystick/Joystick.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Keyboard/Keyboard.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Keyboard/Keyboard.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MIDI/MIDI.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MIDI/MIDI.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/MassStorage.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/MassStorage/MassStorage.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Mouse/Mouse.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/Mouse/Mouse.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.h
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.c
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.h
patch
|
blob
|
blame
|
history
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
patch
|
blob
|
blame
|
history
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
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/KeyboardHost/KeyboardHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
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/MIDIHost/MIDIHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
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/MouseHost/MouseHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/MouseHost/MouseHost.h
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/PrinterHost/PrinterHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
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/StillImageHost/StillImageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
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/Incomplete/BluetoothHost/BluetoothHost.c
patch
|
blob
|
blame
|
history
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
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/KeyboardHost/KeyboardHost.c
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/MIDIHost/MIDIHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
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/MouseHost/MouseHost.c
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/PrinterHost/PrinterHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
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/StillImageHost/StillImageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/LowLevel.c
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/LowLevel.h
patch
|
blob
|
blame
|
history
LUFA/ManPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
LUFA/ManPages/MigrationInformation.txt
patch
|
blob
|
blame
|
history
Projects/AVRISP-MKII/AVRISP.c
patch
|
blob
|
blame
|
history
Projects/Benito/Benito.c
patch
|
blob
|
blame
|
history
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.c
patch
|
blob
|
blame
|
history
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.h
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
patch
|
blob
|
blame
|
history
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.h
patch
|
blob
|
blame
|
history
Projects/LEDNotifier/LEDNotifier.c
patch
|
blob
|
blame
|
history
Projects/LEDNotifier/LEDNotifier.h
patch
|
blob
|
blame
|
history
Projects/Magstripe/Magstripe.c
patch
|
blob
|
blame
|
history
Projects/Magstripe/Magstripe.h
patch
|
blob
|
blame
|
history
Projects/MissileLauncher/MissileLauncher.c
patch
|
blob
|
blame
|
history
Projects/RelayBoard/RelayBoard.c
patch
|
blob
|
blame
|
history
Projects/RelayBoard/RelayBoard.h
patch
|
blob
|
blame
|
history
Projects/TemperatureDataLogger/TempDataLogger.c
patch
|
blob
|
blame
|
history
Projects/TemperatureDataLogger/TempDataLogger.h
patch
|
blob
|
blame
|
history
Projects/USBtoSerial/USBtoSerial.c
patch
|
blob
|
blame
|
history
Projects/Webserver/Webserver.c
patch
|
blob
|
blame
|
history
Projects/Webserver/Webserver.h
patch
|
blob
|
blame
|
history
Projects/XPLAINBridge/XPLAINBridge.c
patch
|
blob
|
blame
|
history
Projects/XPLAINBridge/XPLAINBridge.h
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/CDC/BootloaderCDC.c
b/Bootloaders/CDC/BootloaderCDC.c
index
482859b
..
83fd0ee
100644
(file)
--- a/
Bootloaders/CDC/BootloaderCDC.c
+++ b/
Bootloaders/CDC/BootloaderCDC.c
@@
-69,6
+69,9
@@
int main(void)
/* Setup hardware required for the bootloader */
\r
SetupHardware();
\r
\r
/* Setup hardware required for the bootloader */
\r
SetupHardware();
\r
\r
+ /* Enable global interrupts so that the USB stack can function */
\r
+ sei();
\r
+
\r
while (RunBootloader)
\r
{
\r
CDC_Task();
\r
while (RunBootloader)
\r
{
\r
CDC_Task();
\r
diff --git
a/Bootloaders/CDC/BootloaderCDC.h
b/Bootloaders/CDC/BootloaderCDC.h
index
8367002
..
22b5743
100644
(file)
--- a/
Bootloaders/CDC/BootloaderCDC.h
+++ b/
Bootloaders/CDC/BootloaderCDC.h
@@
-42,6
+42,7
@@
#include <avr/boot.h>
\r
#include <avr/eeprom.h>
\r
#include <avr/power.h>
\r
#include <avr/boot.h>
\r
#include <avr/eeprom.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Bootloaders/DFU/BootloaderDFU.c
b/Bootloaders/DFU/BootloaderDFU.c
index
157b78f
..
d90accb
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.c
+++ b/
Bootloaders/DFU/BootloaderDFU.c
@@
-101,6
+101,9
@@
int main(void)
{
\r
/* Configure hardware required by the bootloader */
\r
SetupHardware();
\r
{
\r
/* Configure hardware required by the bootloader */
\r
SetupHardware();
\r
+
\r
+ /* Enable global interrupts so that the USB stack can function */
\r
+ sei();
\r
\r
/* Run the USB management task while the bootloader is supposed to be running */
\r
while (RunBootloader || WaitForExit)
\r
\r
/* Run the USB management task while the bootloader is supposed to be running */
\r
while (RunBootloader || WaitForExit)
\r
diff --git
a/Bootloaders/DFU/BootloaderDFU.h
b/Bootloaders/DFU/BootloaderDFU.h
index
ca53266
..
4583d6c
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.h
+++ b/
Bootloaders/DFU/BootloaderDFU.h
@@
-43,6
+43,7
@@
#include <avr/pgmspace.h>
\r
#include <avr/eeprom.h>
\r
#include <avr/power.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/eeprom.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Bootloaders/Incomplete/MIDI/BootloaderMIDI.c
b/Bootloaders/Incomplete/MIDI/BootloaderMIDI.c
index
8d26d56
..
8638201
100644
(file)
--- a/
Bootloaders/Incomplete/MIDI/BootloaderMIDI.c
+++ b/
Bootloaders/Incomplete/MIDI/BootloaderMIDI.c
@@
-42,8
+42,6
@@
int main(void)
\r
{
\r
SetupHardware();
\r
int main(void)
\r
{
\r
SetupHardware();
\r
-
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
@@
-63,48
+61,22
@@
void SetupHardware(void)
clock_prescale_set(clock_div_1);
\r
\r
/* Hardware Initialization */
\r
clock_prescale_set(clock_div_1);
\r
\r
/* Hardware Initialization */
\r
- LEDs_Init();
\r
USB_Init();
\r
}
\r
\r
USB_Init();
\r
}
\r
\r
-/** Event handler for the USB_Connect event. This indicates that the device is enumerating via the status LEDs. */
\r
-void EVENT_USB_Device_Connect(void)
\r
-{
\r
- /* Indicate USB enumerating */
\r
- LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
\r
-}
\r
-
\r
-/** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via
\r
- * the status LEDs, disables the sample update and PWM output timers and stops the USB and MIDI management tasks.
\r
- */
\r
-void EVENT_USB_Device_Disconnect(void)
\r
-{
\r
- /* Indicate USB not ready */
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
-}
\r
-
\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration
\r
* of the USB device after enumeration - the device endpoints are configured and the MIDI management task started.
\r
*/
\r
void EVENT_USB_Device_ConfigurationChanged(void)
\r
{
\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration
\r
* of the USB device after enumeration - the device endpoints are configured and the MIDI management task started.
\r
*/
\r
void EVENT_USB_Device_ConfigurationChanged(void)
\r
{
\r
- /* Indicate USB connected and ready */
\r
- LEDs_SetAllLEDs(LEDMASK_USB_READY);
\r
-
\r
/* Setup MIDI stream endpoints */
\r
/* Setup MIDI stream endpoints */
\r
- if (!(Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPNUM, EP_TYPE_BULK,
\r
- ENDPOINT_DIR_OUT, MIDI_STREAM_EPSIZE,
\r
- ENDPOINT_BANK_SINGLE)))
\r
- {
\r
- LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
- }
\r
+ Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPNUM, EP_TYPE_BULK,
\r
+ ENDPOINT_DIR_OUT, MIDI_STREAM_EPSIZE,
\r
+ ENDPOINT_BANK_SINGLE);
\r
\r
\r
- if (!(Endpoint_ConfigureEndpoint(MIDI_STREAM_IN_EPNUM, EP_TYPE_BULK,
\r
- ENDPOINT_DIR_IN, MIDI_STREAM_EPSIZE,
\r
- ENDPOINT_BANK_SINGLE)))
\r
- {
\r
- LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
- }
\r
+ Endpoint_ConfigureEndpoint(MIDI_STREAM_IN_EPNUM, EP_TYPE_BULK,
\r
+ ENDPOINT_DIR_IN, MIDI_STREAM_EPSIZE,
\r
+ ENDPOINT_BANK_SINGLE);
\r
}
\r
\r
/** Task to handle the generation of MIDI note change events in response to presses of the board joystick, and send them
\r
}
\r
\r
/** Task to handle the generation of MIDI note change events in response to presses of the board joystick, and send them
\r
@@
-122,9
+94,7
@@
void MIDI_Task(void)
if (Endpoint_IsOUTReceived())
\r
{
\r
USB_MIDI_EventPacket_t InPacket;
\r
if (Endpoint_IsOUTReceived())
\r
{
\r
USB_MIDI_EventPacket_t InPacket;
\r
- Endpoint_Read_Stream_LE(&InPacket, sizeof(InPacket));
\r
-
\r
- LEDs_SetAllLEDs(InPacket.Data2 > 64 ? LEDS_LED1 : LEDS_LED2);
\r
+ Endpoint_Read_Stream_LE(&InPacket, sizeof(InPacket));
\r
Endpoint_ClearOUT();
\r
\r
uint8_t Channel = InPacket.Data1;
\r
Endpoint_ClearOUT();
\r
\r
uint8_t Channel = InPacket.Data1;
\r
diff --git
a/Bootloaders/Incomplete/MIDI/BootloaderMIDI.h
b/Bootloaders/Incomplete/MIDI/BootloaderMIDI.h
index
5af684d
..
b568819
100644
(file)
--- a/
Bootloaders/Incomplete/MIDI/BootloaderMIDI.h
+++ b/
Bootloaders/Incomplete/MIDI/BootloaderMIDI.h
@@
-41,12
+41,12
@@
#include <avr/wdt.h>
\r
#include <avr/boot.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/boot.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
\r
#include <LUFA/Version.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
\r
#include <LUFA/Version.h>
\r
- #include <LUFA/Drivers/Board/LEDs.h>
\r
#include <LUFA/Drivers/USB/USB.h>
\r
\r
/* Macros: */
\r
#include <LUFA/Drivers/USB/USB.h>
\r
\r
/* Macros: */
\r
diff --git
a/Bootloaders/TeensyHID/TeensyHID.c
b/Bootloaders/TeensyHID/TeensyHID.c
index
2317ea4
..
5431a57
100644
(file)
--- a/
Bootloaders/TeensyHID/TeensyHID.c
+++ b/
Bootloaders/TeensyHID/TeensyHID.c
@@
-49,6
+49,9
@@
int main(void)
/* Setup hardware required for the bootloader */
\r
SetupHardware();
\r
\r
/* Setup hardware required for the bootloader */
\r
SetupHardware();
\r
\r
+ /* Enable global interrupts so that the USB stack can function */
\r
+ sei();
\r
+
\r
while (RunBootloader)
\r
USB_USBTask();
\r
\r
while (RunBootloader)
\r
USB_USBTask();
\r
\r
diff --git
a/Bootloaders/TeensyHID/TeensyHID.h
b/Bootloaders/TeensyHID/TeensyHID.h
index
6393898
..
7e3d72d
100644
(file)
--- a/
Bootloaders/TeensyHID/TeensyHID.h
+++ b/
Bootloaders/TeensyHID/TeensyHID.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/boot.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/boot.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/ClassDriver/AudioInput/AudioInput.c
b/Demos/Device/ClassDriver/AudioInput/AudioInput.c
index
22d0173
..
09a2f0f
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioInput/AudioInput.c
+++ b/
Demos/Device/ClassDriver/AudioInput/AudioInput.c
@@
-59,6
+59,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/AudioInput/AudioInput.h
b/Demos/Device/ClassDriver/AudioInput/AudioInput.h
index
98fec78
..
dc3475e
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioInput/AudioInput.h
+++ b/
Demos/Device/ClassDriver/AudioInput/AudioInput.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
diff --git
a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
index
be3eb42
..
0dda68c
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
+++ b/
Demos/Device/ClassDriver/AudioOutput/AudioOutput.c
@@
-59,6
+59,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
index
e8bd769
..
cf0034f
100644
(file)
--- a/
Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
+++ b/
Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdlib.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdlib.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
index
dd64c28
..
ba3b86f
100644
(file)
--- a/
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
+++ b/
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
@@
-94,6
+94,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.h
b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.h
index
a7ce35d
..
1c99cfd
100644
(file)
--- a/
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.h
+++ b/
Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/ClassDriver/GenericHID/GenericHID.c
b/Demos/Device/ClassDriver/GenericHID/GenericHID.c
index
3516f08
..
285a197
100644
(file)
--- a/
Demos/Device/ClassDriver/GenericHID/GenericHID.c
+++ b/
Demos/Device/ClassDriver/GenericHID/GenericHID.c
@@
-74,6
+74,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/GenericHID/GenericHID.h
b/Demos/Device/ClassDriver/GenericHID/GenericHID.h
index
423e28f
..
595bd0e
100644
(file)
--- a/
Demos/Device/ClassDriver/GenericHID/GenericHID.h
+++ b/
Demos/Device/ClassDriver/GenericHID/GenericHID.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/ClassDriver/Joystick/Joystick.c
b/Demos/Device/ClassDriver/Joystick/Joystick.c
index
518c86e
..
6a259d7
100644
(file)
--- a/
Demos/Device/ClassDriver/Joystick/Joystick.c
+++ b/
Demos/Device/ClassDriver/Joystick/Joystick.c
@@
-66,6
+66,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/Joystick/Joystick.h
b/Demos/Device/ClassDriver/Joystick/Joystick.h
index
7932ab5
..
9f666fe
100644
(file)
--- a/
Demos/Device/ClassDriver/Joystick/Joystick.h
+++ b/
Demos/Device/ClassDriver/Joystick/Joystick.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/ClassDriver/Keyboard/Keyboard.c
b/Demos/Device/ClassDriver/Keyboard/Keyboard.c
index
ea4fbf8
..
0da5295
100644
(file)
--- a/
Demos/Device/ClassDriver/Keyboard/Keyboard.c
+++ b/
Demos/Device/ClassDriver/Keyboard/Keyboard.c
@@
-66,6
+66,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/Keyboard/Keyboard.h
b/Demos/Device/ClassDriver/Keyboard/Keyboard.h
index
945c7e8
..
2c86bf5
100644
(file)
--- a/
Demos/Device/ClassDriver/Keyboard/Keyboard.h
+++ b/
Demos/Device/ClassDriver/Keyboard/Keyboard.h
@@
-40,8
+40,8
@@
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
- #include <avr/interrupt.h>
\r
#include <avr/power.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c
b/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c
index
1f87a7a
..
94f27bd
100644
(file)
--- a/
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c
+++ b/
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c
@@
-89,6
+89,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.h
b/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.h
index
ca4cfec
..
4c540cc
100644
(file)
--- a/
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.h
+++ b/
Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.h
@@
-36,6
+36,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/ClassDriver/MIDI/MIDI.c
b/Demos/Device/ClassDriver/MIDI/MIDI.c
index
5c0f25e
..
7fcdfcc
100644
(file)
--- a/
Demos/Device/ClassDriver/MIDI/MIDI.c
+++ b/
Demos/Device/ClassDriver/MIDI/MIDI.c
@@
-64,6
+64,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/MIDI/MIDI.h
b/Demos/Device/ClassDriver/MIDI/MIDI.h
index
c8cb426
..
96e2b40
100644
(file)
--- a/
Demos/Device/ClassDriver/MIDI/MIDI.h
+++ b/
Demos/Device/ClassDriver/MIDI/MIDI.h
@@
-40,7
+40,9
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <stdbool.h>
\r
+ #include <string.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/ClassDriver/MassStorage/MassStorage.c
b/Demos/Device/ClassDriver/MassStorage/MassStorage.c
index
ce8e04b
..
c58dff9
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/MassStorage.c
+++ b/
Demos/Device/ClassDriver/MassStorage/MassStorage.c
@@
-66,6
+66,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/MassStorage/MassStorage.h
b/Demos/Device/ClassDriver/MassStorage/MassStorage.h
index
2c7fa7d
..
64da5b3
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorage/MassStorage.h
+++ b/
Demos/Device/ClassDriver/MassStorage/MassStorage.h
@@
-40,6
+40,8
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
+ #include <string.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
index
828699a
..
9b4efb6
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
@@
-89,6
+89,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
index
deeb6e0
..
65600ee
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
@@
-42,6
+42,7
@@
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/interrupt.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/interrupt.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/ClassDriver/Mouse/Mouse.c
b/Demos/Device/ClassDriver/Mouse/Mouse.c
index
48348c7
..
96af145
100644
(file)
--- a/
Demos/Device/ClassDriver/Mouse/Mouse.c
+++ b/
Demos/Device/ClassDriver/Mouse/Mouse.c
@@
-66,6
+66,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/Mouse/Mouse.h
b/Demos/Device/ClassDriver/Mouse/Mouse.h
index
79d56aa
..
818d540
100644
(file)
--- a/
Demos/Device/ClassDriver/Mouse/Mouse.h
+++ b/
Demos/Device/ClassDriver/Mouse/Mouse.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/interrupt.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/interrupt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.h
b/Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.h
index
a3b92fa
..
2dfc608
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.h
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/Lib/ProtocolDecoders.h
@@
-38,6
+38,8
@@
\r
/* Includes: */
\r
#include <avr/io.h>
\r
\r
/* Includes: */
\r
#include <avr/io.h>
\r
+ #include <avr/pgmspace.h>
\r
+ #include <stdio.h>
\r
\r
#include <LUFA/Drivers/USB/Class/RNDIS.h>
\r
#include <LUFA/Drivers/Peripheral/SerialStream.h>
\r
\r
#include <LUFA/Drivers/USB/Class/RNDIS.h>
\r
#include <LUFA/Drivers/Peripheral/SerialStream.h>
\r
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
index
dbdbb8a
..
14016aa
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
@@
-70,12
+70,11
@@
int main(void)
{
\r
SetupHardware();
\r
\r
{
\r
SetupHardware();
\r
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
-
\r
TCP_Init();
\r
Webserver_Init();
\r
\r
TCP_Init();
\r
Webserver_Init();
\r
\r
- printf_P(PSTR("\r\n\r\n****** RNDIS Demo running. ******\r\n"));
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.h
b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.h
index
3bed7f8
..
c6c092c
100644
(file)
--- a/
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.h
+++ b/
Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.h
@@
-39,10
+39,9
@@
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
- #include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
#include <string.h>
\r
- #include <stdio.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
b/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
index
30cbc66
..
1a8d6ed
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
+++ b/
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.c
@@
-76,6
+76,7
@@
int main(void)
CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.h
b/Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.h
index
96d8380
..
0edac54
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.h
+++ b/
Demos/Device/ClassDriver/VirtualSerial/VirtualSerial.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
#include <stdio.h>
\r
\r
#include <string.h>
\r
#include <stdio.h>
\r
\r
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
index
e7c899b
..
c55d6d0
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
@@
-90,6
+90,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.h
b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.h
index
c0e6e79
..
3d6d3a7
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.h
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/Incomplete/Sideshow/Sideshow.c
b/Demos/Device/Incomplete/Sideshow/Sideshow.c
index
6c48c34
..
5f70b34
100644
(file)
--- a/
Demos/Device/Incomplete/Sideshow/Sideshow.c
+++ b/
Demos/Device/Incomplete/Sideshow/Sideshow.c
@@
-58,6
+58,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/Incomplete/Sideshow/Sideshow.h
b/Demos/Device/Incomplete/Sideshow/Sideshow.h
index
a75d3d9
..
871e477
100644
(file)
--- a/
Demos/Device/Incomplete/Sideshow/Sideshow.h
+++ b/
Demos/Device/Incomplete/Sideshow/Sideshow.h
@@
-35,6
+35,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "Descriptors.h"
\r
#include "Lib/SideshowCommands.h"
\r
\r
#include "Descriptors.h"
\r
#include "Lib/SideshowCommands.h"
\r
diff --git
a/Demos/Device/LowLevel/AudioInput/AudioInput.c
b/Demos/Device/LowLevel/AudioInput/AudioInput.c
index
392609b
..
aa8967c
100644
(file)
--- a/
Demos/Device/LowLevel/AudioInput/AudioInput.c
+++ b/
Demos/Device/LowLevel/AudioInput/AudioInput.c
@@
-47,6
+47,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/AudioInput/AudioInput.h
b/Demos/Device/LowLevel/AudioInput/AudioInput.h
index
4585ab5
..
6902dc8
100644
(file)
--- a/
Demos/Device/LowLevel/AudioInput/AudioInput.h
+++ b/
Demos/Device/LowLevel/AudioInput/AudioInput.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
index
5dcb5c5
..
8cd6be1
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
+++ b/
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
@@
-47,6
+47,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/AudioOutput/AudioOutput.h
b/Demos/Device/LowLevel/AudioOutput/AudioOutput.h
index
3812ae0
..
69b59b8
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/AudioOutput.h
+++ b/
Demos/Device/LowLevel/AudioOutput/AudioOutput.h
@@
-40,7
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
- #include <
stdlib
.h>
\r
+ #include <
avr/interrupt
.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
b/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
index
9be089b
..
5c90c6a
100644
(file)
--- a/
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
+++ b/
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
@@
-69,6
+69,9
@@
CDC_Line_Coding_t LineEncoding2 = { .BaudRateBPS = 0,
int main(void)
\r
{
\r
SetupHardware();
\r
int main(void)
\r
{
\r
SetupHardware();
\r
+
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.h
b/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.h
index
a4c8f97
..
6ca8b72
100644
(file)
--- a/
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.h
+++ b/
Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/LowLevel/GenericHID/GenericHID.c
b/Demos/Device/LowLevel/GenericHID/GenericHID.c
index
4d3f4c1
..
9d9012a
100644
(file)
--- a/
Demos/Device/LowLevel/GenericHID/GenericHID.c
+++ b/
Demos/Device/LowLevel/GenericHID/GenericHID.c
@@
-48,6
+48,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/GenericHID/GenericHID.h
b/Demos/Device/LowLevel/GenericHID/GenericHID.h
index
c79ed6f
..
deaee33
100644
(file)
--- a/
Demos/Device/LowLevel/GenericHID/GenericHID.h
+++ b/
Demos/Device/LowLevel/GenericHID/GenericHID.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/LowLevel/Joystick/Joystick.c
b/Demos/Device/LowLevel/Joystick/Joystick.c
index
0edead5
..
e84eef0
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/Joystick.c
+++ b/
Demos/Device/LowLevel/Joystick/Joystick.c
@@
-44,6
+44,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/Joystick/Joystick.h
b/Demos/Device/LowLevel/Joystick/Joystick.h
index
811cb4e
..
761582d
100644
(file)
--- a/
Demos/Device/LowLevel/Joystick/Joystick.h
+++ b/
Demos/Device/LowLevel/Joystick/Joystick.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/LowLevel/Keyboard/Keyboard.c
b/Demos/Device/LowLevel/Keyboard/Keyboard.c
index
fd7e63e
..
6771584
100644
(file)
--- a/
Demos/Device/LowLevel/Keyboard/Keyboard.c
+++ b/
Demos/Device/LowLevel/Keyboard/Keyboard.c
@@
-62,6
+62,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/Keyboard/Keyboard.h
b/Demos/Device/LowLevel/Keyboard/Keyboard.h
index
4cb3616
..
f41f6d4
100644
(file)
--- a/
Demos/Device/LowLevel/Keyboard/Keyboard.h
+++ b/
Demos/Device/LowLevel/Keyboard/Keyboard.h
@@
-41,6
+41,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
index
e41b709
..
ddcd3ce
100644
(file)
--- a/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
+++ b/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
@@
-52,6
+52,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.h
b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.h
index
7fcec97
..
993b326
100644
(file)
--- a/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.h
+++ b/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.h
@@
-36,6
+36,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/LowLevel/MIDI/MIDI.c
b/Demos/Device/LowLevel/MIDI/MIDI.c
index
edfc56f
..
03536b2
100644
(file)
--- a/
Demos/Device/LowLevel/MIDI/MIDI.c
+++ b/
Demos/Device/LowLevel/MIDI/MIDI.c
@@
-44,7
+44,8
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
-
\r
+ sei();
\r
+
\r
for (;;)
\r
{
\r
MIDI_Task();
\r
for (;;)
\r
{
\r
MIDI_Task();
\r
diff --git
a/Demos/Device/LowLevel/MIDI/MIDI.h
b/Demos/Device/LowLevel/MIDI/MIDI.h
index
82e42da
..
a497527
100644
(file)
--- a/
Demos/Device/LowLevel/MIDI/MIDI.h
+++ b/
Demos/Device/LowLevel/MIDI/MIDI.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/Device/LowLevel/MassStorage/MassStorage.c
b/Demos/Device/LowLevel/MassStorage/MassStorage.c
index
fc9a97d
..
1ed84d3
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/MassStorage.c
+++ b/
Demos/Device/LowLevel/MassStorage/MassStorage.c
@@
-55,6
+55,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/MassStorage/MassStorage.h
b/Demos/Device/LowLevel/MassStorage/MassStorage.h
index
4430208
..
27d1e3b
100644
(file)
--- a/
Demos/Device/LowLevel/MassStorage/MassStorage.h
+++ b/
Demos/Device/LowLevel/MassStorage/MassStorage.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/LowLevel/Mouse/Mouse.c
b/Demos/Device/LowLevel/Mouse/Mouse.c
index
70ed82c
..
3fce522
100644
(file)
--- a/
Demos/Device/LowLevel/Mouse/Mouse.c
+++ b/
Demos/Device/LowLevel/Mouse/Mouse.c
@@
-61,6
+61,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/Mouse/Mouse.h
b/Demos/Device/LowLevel/Mouse/Mouse.h
index
884482b
..
6a1a518
100644
(file)
--- a/
Demos/Device/LowLevel/Mouse/Mouse.h
+++ b/
Demos/Device/LowLevel/Mouse/Mouse.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
#include <stdbool.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
index
7bae188
..
0185675
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
+++ b/
Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
@@
-38,6
+38,8
@@
\r
/* Includes: */
\r
#include <avr/io.h>
\r
\r
/* Includes: */
\r
#include <avr/io.h>
\r
+ #include <avr/pgmspace.h>
\r
+ #include <stdio.h>
\r
\r
#include <LUFA/Drivers/Peripheral/SerialStream.h>
\r
\r
\r
#include <LUFA/Drivers/Peripheral/SerialStream.h>
\r
\r
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
b/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
index
1b617dd
..
cb06bc3
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
+++ b/
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
@@
-47,9
+47,8
@@
int main(void)
TCP_Init();
\r
Webserver_Init();
\r
\r
TCP_Init();
\r
Webserver_Init();
\r
\r
- printf_P(PSTR("\r\n\r\n****** RNDIS Demo running. ******\r\n"));
\r
-
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.h
b/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.h
index
3828134
..
478ed1a
100644
(file)
--- a/
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.h
+++ b/
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.h
@@
-39,10
+39,9
@@
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
- #include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
#include <string.h>
\r
- #include <stdio.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Demos/Device/LowLevel/VirtualSerial/VirtualSerial.c
b/Demos/Device/LowLevel/VirtualSerial/VirtualSerial.c
index
bad8757
..
52ef28c
100644
(file)
--- a/
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.c
+++ b/
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.c
@@
-57,6
+57,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Device/LowLevel/VirtualSerial/VirtualSerial.h
b/Demos/Device/LowLevel/VirtualSerial/VirtualSerial.h
index
5427a69
..
1ec261c
100644
(file)
--- a/
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.h
+++ b/
Demos/Device/LowLevel/VirtualSerial/VirtualSerial.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
#include <string.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
index
dc94e1f
..
98bf50b
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mouse Host/Device Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse Host/Device Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
index
50b89ad
..
48035d6
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
index
0e7e579
..
32c9b69
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
@@
-70,6
+70,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Joystick Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Joystick Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
index
b47630a
..
7ee7b80
100644
(file)
--- a/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
+++ b/
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
index
15b9319
..
61292a4
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
+++ b/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
@@
-65,7
+65,8
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
-
\r
+ sei();
\r
+
\r
for (;;)
\r
{
\r
switch (USB_HostState)
\r
for (;;)
\r
{
\r
switch (USB_HostState)
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
index
0dc2d3b
..
2e5f1ca
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
+++ b/
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
index
14b6501
..
531757a
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-70,6
+70,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Keyboard Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
b/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
index
8f41948
..
98d00fb
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
index
064c22d
..
8fbf31b
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
+++ b/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
@@
-63,6
+63,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
index
6a93c97
..
8da4a95
100644
(file)
--- a/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
+++ b/
Demos/Host/ClassDriver/MIDIHost/MIDIHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
index
6740d9c
..
a442c1b
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
@@
-63,6
+63,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
index
5a61c26
..
e97d1e3
100644
(file)
--- a/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
+++ b/
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <ctype.h>
\r
#include <stdio.h>
\r
\r
#include <ctype.h>
\r
#include <stdio.h>
\r
\r
diff --git
a/Demos/Host/ClassDriver/MouseHost/MouseHost.c
b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
index
4501a25
..
af75d4b
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/MouseHost.c
+++ b/
Demos/Host/ClassDriver/MouseHost/MouseHost.c
@@
-65,6
+65,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/MouseHost/MouseHost.h
b/Demos/Host/ClassDriver/MouseHost/MouseHost.h
index
1fdf42b
..
bc64120
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHost/MouseHost.h
+++ b/
Demos/Host/ClassDriver/MouseHost/MouseHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
index
c735b5c
..
296f86b
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
@@
-68,6
+68,7
@@
int main(void)
SetupHardware();
\r
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE));
\r
SetupHardware();
\r
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse Host Demo running.\r\n" ESC_FG_WHITE));
\r
+ sei();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
diff --git
a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
index
8d798ab
..
e88738d
100644
(file)
--- a/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
+++ b/
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
b/Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
index
2df6572
..
d2baad6
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
+++ b/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
@@
-62,6
+62,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
b/Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
index
c2ebede
..
2fb7c8c
100644
(file)
--- a/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
+++ b/
Demos/Host/ClassDriver/PrinterHost/PrinterHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
index
e31f9a3
..
f5c3e42
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
@@
-70,6
+70,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
index
06b9fd5
..
c0d0c60
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
index
ff33c45
..
81bfbe4
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
@@
-65,6
+65,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
index
35c9f12
..
4078238
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
+++ b/
Demos/Host/ClassDriver/StillImageHost/StillImageHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
b/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
index
d5ec041
..
df6ad97
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
@@
-65,6
+65,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
b/Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
index
785a605
..
a54e75f
100644
(file)
--- a/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
+++ b/
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
index
8f6e1f2
..
e74d377
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
+++ b/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
@@
-54,6
+54,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Bluetooth Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Bluetooth Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.h
b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.h
index
62baf06
..
8a2817c
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.h
+++ b/
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include "Lib/ServiceDiscoveryProtocol.h"
\r
#include <stdio.h>
\r
\r
#include "Lib/ServiceDiscoveryProtocol.h"
\r
diff --git
a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
index
38d96a3
..
3dc314e
100644
(file)
--- a/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
+++ b/
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Generic HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Generic HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
index
144830e
..
04870b1
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Joystick HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Joystick HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
index
38fe3e4
..
2ac9d5c
100644
(file)
--- a/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
+++ b/
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
index
b85d40d
..
633094f
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
+++ b/
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
index
778220b
..
431e76a
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Keyboard HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
index
f5aaf2d
..
5df5622
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.h
@@
-36,6
+36,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
b/Demos/Host/LowLevel/MIDIHost/MIDIHost.c
index
6964f71
..
cbbb0c5
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
+++ b/
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "MIDI Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/MIDIHost/MIDIHost.h
b/Demos/Host/LowLevel/MIDIHost/MIDIHost.h
index
094adcc
..
576ad60
100644
(file)
--- a/
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
+++ b/
Demos/Host/LowLevel/MIDIHost/MIDIHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
index
55b8593
..
31d2c10
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
@@
-50,6
+50,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mass Storage Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
index
fad372c
..
0d92fd5
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
+++ b/
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
#include <ctype.h>
\r
#include <string.h>
\r
#include <stdio.h>
\r
#include <ctype.h>
\r
#include <string.h>
\r
diff --git
a/Demos/Host/LowLevel/MouseHost/MouseHost.c
b/Demos/Host/LowLevel/MouseHost/MouseHost.c
index
1c59400
..
5cf5e44
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHost/MouseHost.c
+++ b/
Demos/Host/LowLevel/MouseHost/MouseHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mouse HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse HID Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
index
1488301
..
e13f5f4
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Mouse HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Mouse HID Parser Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
index
e05beb8
..
10cd8ec
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/LowLevel/PrinterHost/PrinterHost.c
b/Demos/Host/LowLevel/PrinterHost/PrinterHost.c
index
6840138
..
a2c9fd8
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
+++ b/
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
@@
-46,6
+46,7
@@
int main(void)
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE));
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
\r
puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE));
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/PrinterHost/PrinterHost.h
b/Demos/Host/LowLevel/PrinterHost/PrinterHost.h
index
7fa572c
..
9b0bb5d
100644
(file)
--- a/
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
+++ b/
Demos/Host/LowLevel/PrinterHost/PrinterHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
#include <string.h>
\r
\r
#include <stdio.h>
\r
#include <string.h>
\r
\r
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
index
5ca5915
..
8e27430
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "RNDIS Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
b/Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
index
20a48ac
..
8e92157
100644
(file)
--- a/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
+++ b/
Demos/Host/LowLevel/RNDISEthernetHost/RNDISEthernetHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
b/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
index
4561319
..
2daf3ef
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "Still Image Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/StillImageHost/StillImageHost.h
b/Demos/Host/LowLevel/StillImageHost/StillImageHost.h
index
ddbffee
..
92f007b
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
+++ b/
Demos/Host/LowLevel/StillImageHost/StillImageHost.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include "ConfigDescriptor.h"
\r
#include <stdio.h>
\r
\r
#include "ConfigDescriptor.h"
\r
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
index
588198b
..
735ebba
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.c
@@
-46,6
+46,7
@@
int main(void)
puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
puts_P(PSTR(ESC_FG_CYAN "CDC Host Demo running.\r\n" ESC_FG_WHITE));
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
b/Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
index
7bfc13f
..
ecf3522
100644
(file)
--- a/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
+++ b/
Demos/Host/LowLevel/VirtualSerialHost/VirtualSerialHost.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <stdio.h>
\r
\r
#include <LUFA/Version.h>
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/LowLevel.c
b/LUFA/Drivers/USB/LowLevel/LowLevel.c
index
c9d0493
..
a088654
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/LowLevel.c
+++ b/
LUFA/Drivers/USB/LowLevel/LowLevel.c
@@
-103,8
+103,6
@@
void USB_Init(
#endif
\r
\r
USB_IsInitialized = true;
\r
#endif
\r
\r
USB_IsInitialized = true;
\r
-
\r
- sei();
\r
}
\r
\r
void USB_ShutDown(void)
\r
}
\r
\r
void USB_ShutDown(void)
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/LowLevel.h
b/LUFA/Drivers/USB/LowLevel/LowLevel.h
index
79261cd
..
337a004
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/LowLevel.h
+++ b/
LUFA/Drivers/USB/LowLevel/LowLevel.h
@@
-236,8
+236,12
@@
* allow for device connection to a host when in device mode, or for device enumeration while in
\r
* host mode.
\r
*
\r
* allow for device connection to a host when in device mode, or for device enumeration while in
\r
* host mode.
\r
*
\r
- * As the USB library relies on USB interrupts for some of its functionality, this routine will
\r
- * enable global interrupts.
\r
+ * As the USB library relies on interrupts for the device and host mode enumeration processes,
\r
+ * the user must enable global interrupts before or shortly after this function is called. In
\r
+ * device mode, interrupts must be enabled within 500ms of this function being called to ensure
\r
+ * that the host does not time out whilst enumerating the device. In host mode, interrupts may be
\r
+ * enabled at the application's leisure however enumeration will not begin of an attached device
\r
+ * until after this has occurred.
\r
*
\r
* Calling this function when the USB interface is already initialized will cause a complete USB
\r
* interface reset and re-enumeration.
\r
*
\r
* Calling this function when the USB interface is already initialized will cause a complete USB
\r
* interface reset and re-enumeration.
\r
diff --git
a/LUFA/ManPages/ChangeLog.txt
b/LUFA/ManPages/ChangeLog.txt
index
425cb43
..
2a772b8
100644
(file)
--- a/
LUFA/ManPages/ChangeLog.txt
+++ b/
LUFA/ManPages/ChangeLog.txt
@@
-28,6
+28,7
@@
* - Added LIBUSB_FILTERDRV_COMPAT compile time option to the AVRISP programmer project to make the code compatible with Windows
\r
* builds of avrdude at the expense of AVRStudio compatibility
\r
* - Removed two-step endpoint/pipe bank clear and switch sequence for smaller, faster endpoint/pipe code
\r
* - Added LIBUSB_FILTERDRV_COMPAT compile time option to the AVRISP programmer project to make the code compatible with Windows
\r
* builds of avrdude at the expense of AVRStudio compatibility
\r
* - Removed two-step endpoint/pipe bank clear and switch sequence for smaller, faster endpoint/pipe code
\r
+ * - The USB_Init() function no longer calls sei() - the user is now responsible for enabling interrupts when they are ready
\r
*
\r
* <b>Fixed:</b>
\r
* - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin
\r
*
\r
* <b>Fixed:</b>
\r
* - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin
\r
diff --git
a/LUFA/ManPages/MigrationInformation.txt
b/LUFA/ManPages/MigrationInformation.txt
index
8467e00
..
baed509
100644
(file)
--- a/
LUFA/ManPages/MigrationInformation.txt
+++ b/
LUFA/ManPages/MigrationInformation.txt
@@
-16,6
+16,18
@@
* - The \ref TWI_StartTransmission() function now takes in a timeout period, expressed in milliseconds, within which the addressed
\r
* device must respond or the function will abort.
\r
*
\r
* - The \ref TWI_StartTransmission() function now takes in a timeout period, expressed in milliseconds, within which the addressed
\r
* device must respond or the function will abort.
\r
*
\r
+ * <b>Device Mode</b>
\r
+ * - The \ref USB_Init() function no longer calls sei() to enable global interrupts, as the user application may need
\r
+ * to perform other initialization before it is ready to handle global interrupts. The user application is now responsible
\r
+ * for enabling global interrupts before or shortly after calling \ref USB_Init() to ensure that the enumeration process
\r
+ * functions correctly.
\r
+ *
\r
+ * <b>Host Mode</b>
\r
+ * - The \ref USB_Init() function no longer calls sei() to enable global interrupts, as the user application may need
\r
+ * to perform other initialization before it is ready to handle global interrupts. The user application is now responsible
\r
+ * for enabling global interrupts before or shortly after calling \ref USB_Init() to ensure that the enumeration process
\r
+ * functions correctly.
\r
+ *
\r
* \section Sec_Migration100219 Migrating from 091223 to 100219
\r
*
\r
* <b>Non-USB Library Components</b>
\r
* \section Sec_Migration100219 Migrating from 091223 to 100219
\r
*
\r
* <b>Non-USB Library Components</b>
\r
diff --git
a/Projects/AVRISP-MKII/AVRISP.c
b/Projects/AVRISP-MKII/AVRISP.c
index
2ba8001
..
cea1161
100644
(file)
--- a/
Projects/AVRISP-MKII/AVRISP.c
+++ b/
Projects/AVRISP-MKII/AVRISP.c
@@
-44,6
+44,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Benito/Benito.c
b/Projects/Benito/Benito.c
index
86da27a
..
be623e9
100644
(file)
--- a/
Projects/Benito/Benito.c
+++ b/
Projects/Benito/Benito.c
@@
-83,6
+83,8
@@
int main(void)
SetupHardware();
\r
\r
Buffer_Initialize(&Tx_Buffer);
\r
SetupHardware();
\r
\r
Buffer_Initialize(&Tx_Buffer);
\r
+
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.c
b/Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.c
index
4df3750
..
c86cd07
100644
(file)
--- a/
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.c
+++ b/
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.c
@@
-88,6
+88,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.h
b/Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.h
index
f7f39d5
..
d2405f8
100644
(file)
--- a/
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.h
+++ b/
Projects/Incomplete/MIDIToneGenerator/MIDIToneGenerator.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/pgmspace.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdbool.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
index
8090b5d
..
239eb71
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
+++ b/
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
@@
-108,6
+108,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.h
b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.h
index
5623945
..
f61e369
100644
(file)
--- a/
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.h
+++ b/
Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include "DiskDevice.h"
\r
#include <stdio.h>
\r
\r
#include "DiskDevice.h"
\r
diff --git
a/Projects/LEDNotifier/LEDNotifier.c
b/Projects/LEDNotifier/LEDNotifier.c
index
61d5efc
..
5b53900
100644
(file)
--- a/
Projects/LEDNotifier/LEDNotifier.c
+++ b/
Projects/LEDNotifier/LEDNotifier.c
@@
-107,6
+107,8
@@
int main(void)
\r
/* Create a regular blocking character stream for the interface so that it can be used with the stdio.h functions */
\r
CDC_Device_CreateBlockingStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
\r
\r
/* Create a regular blocking character stream for the interface so that it can be used with the stdio.h functions */
\r
CDC_Device_CreateBlockingStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
\r
+
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/LEDNotifier/LEDNotifier.h
b/Projects/LEDNotifier/LEDNotifier.h
index
ee41d7d
..
243723e
100644
(file)
--- a/
Projects/LEDNotifier/LEDNotifier.h
+++ b/
Projects/LEDNotifier/LEDNotifier.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <string.h>
\r
#include <stdio.h>
\r
\r
#include <string.h>
\r
#include <stdio.h>
\r
\r
diff --git
a/Projects/Magstripe/Magstripe.c
b/Projects/Magstripe/Magstripe.c
index
88950cc
..
39149b4
100644
(file)
--- a/
Projects/Magstripe/Magstripe.c
+++ b/
Projects/Magstripe/Magstripe.c
@@
-76,6
+76,8
@@
int main(void)
\r
for (uint8_t Buffer = 0; Buffer < TOTAL_TRACKS; Buffer++)
\r
BitBuffer_Init(&TrackDataBuffers[Buffer]);
\r
\r
for (uint8_t Buffer = 0; Buffer < TOTAL_TRACKS; Buffer++)
\r
BitBuffer_Init(&TrackDataBuffers[Buffer]);
\r
+
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Magstripe/Magstripe.h
b/Projects/Magstripe/Magstripe.h
index
ddadd0d
..
8a48e7c
100644
(file)
--- a/
Projects/Magstripe/Magstripe.h
+++ b/
Projects/Magstripe/Magstripe.h
@@
-41,6
+41,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "Descriptors.h"
\r
#include "Lib/MagstripeHW.h"
\r
\r
#include "Descriptors.h"
\r
#include "Lib/MagstripeHW.h"
\r
diff --git
a/Projects/MissileLauncher/MissileLauncher.c
b/Projects/MissileLauncher/MissileLauncher.c
index
a186732
..
cb0bd85
100644
(file)
--- a/
Projects/MissileLauncher/MissileLauncher.c
+++ b/
Projects/MissileLauncher/MissileLauncher.c
@@
-95,10
+95,11
@@
int main(void)
{
\r
SetupHardware();
\r
\r
{
\r
SetupHardware();
\r
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
-
\r
CmdState = CMD_STOP;
\r
\r
CmdState = CMD_STOP;
\r
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
+
\r
for (;;)
\r
{
\r
Read_Joystick_Status();
\r
for (;;)
\r
{
\r
Read_Joystick_Status();
\r
diff --git
a/Projects/RelayBoard/RelayBoard.c
b/Projects/RelayBoard/RelayBoard.c
index
a496679
..
2fb7b69
100644
(file)
--- a/
Projects/RelayBoard/RelayBoard.c
+++ b/
Projects/RelayBoard/RelayBoard.c
@@
-44,6
+44,8
@@
int main(void)
\r
{
\r
SetupHardware();
\r
int main(void)
\r
{
\r
SetupHardware();
\r
+
\r
+ sei();
\r
\r
for (;;)
\r
USB_USBTask();
\r
\r
for (;;)
\r
USB_USBTask();
\r
diff --git
a/Projects/RelayBoard/RelayBoard.h
b/Projects/RelayBoard/RelayBoard.h
index
2ffa590
..
f42d78c
100644
(file)
--- a/
Projects/RelayBoard/RelayBoard.h
+++ b/
Projects/RelayBoard/RelayBoard.h
@@
-41,6
+41,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "Descriptors.h"
\r
\r
\r
#include "Descriptors.h"
\r
\r
diff --git
a/Projects/TemperatureDataLogger/TempDataLogger.c
b/Projects/TemperatureDataLogger/TempDataLogger.c
index
35bf68b
..
5910528
100644
(file)
--- a/
Projects/TemperatureDataLogger/TempDataLogger.c
+++ b/
Projects/TemperatureDataLogger/TempDataLogger.c
@@
-137,16
+137,17
@@
ISR(TIMER1_COMPA_vect, ISR_BLOCK)
*/
\r
int main(void)
\r
{
\r
*/
\r
int main(void)
\r
{
\r
- /* Fetch logging interval from EEPROM */
\r
- LoggingInterval500MS_SRAM = eeprom_read_byte(&LoggingInterval500MS_EEPROM);
\r
-
\r
SetupHardware();
\r
\r
SetupHardware();
\r
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ /* Fetch logging interval from EEPROM */
\r
+ LoggingInterval500MS_SRAM = eeprom_read_byte(&LoggingInterval500MS_EEPROM);
\r
\r
/* Mount and open the log file on the dataflash FAT partition */
\r
OpenLogFile();
\r
\r
\r
/* Mount and open the log file on the dataflash FAT partition */
\r
OpenLogFile();
\r
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
+
\r
/* Discard the first sample from the temperature sensor, as it is generally incorrect */
\r
volatile uint8_t Dummy = Temperature_GetTemperature();
\r
(void)Dummy;
\r
/* Discard the first sample from the temperature sensor, as it is generally incorrect */
\r
volatile uint8_t Dummy = Temperature_GetTemperature();
\r
(void)Dummy;
\r
diff --git
a/Projects/TemperatureDataLogger/TempDataLogger.h
b/Projects/TemperatureDataLogger/TempDataLogger.h
index
3f3a3c0
..
a6e770b
100644
(file)
--- a/
Projects/TemperatureDataLogger/TempDataLogger.h
+++ b/
Projects/TemperatureDataLogger/TempDataLogger.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
#include <stdio.h>
\r
\r
#include "Descriptors.h"
\r
#include <stdio.h>
\r
\r
#include "Descriptors.h"
\r
diff --git
a/Projects/USBtoSerial/USBtoSerial.c
b/Projects/USBtoSerial/USBtoSerial.c
index
73be33e
..
c9bc717
100644
(file)
--- a/
Projects/USBtoSerial/USBtoSerial.c
+++ b/
Projects/USBtoSerial/USBtoSerial.c
@@
-77,6
+77,7
@@
int main(void)
Buffer_Initialize(&USARTtoUSB_Buffer);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
Buffer_Initialize(&USARTtoUSB_Buffer);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Webserver/Webserver.c
b/Projects/Webserver/Webserver.c
index
541e0e2
..
cecd881
100644
(file)
--- a/
Projects/Webserver/Webserver.c
+++ b/
Projects/Webserver/Webserver.c
@@
-44,6
+44,7
@@
int main(void)
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
SetupHardware();
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/Webserver/Webserver.h
b/Projects/Webserver/Webserver.h
index
f1351d8
..
4fb5b37
100644
(file)
--- a/
Projects/Webserver/Webserver.h
+++ b/
Projects/Webserver/Webserver.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
#include <avr/wdt.h>
\r
#include <avr/pgmspace.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
\r
#include <LUFA/Version.h>
\r
#include <LUFA/Drivers/Board/LEDs.h>
\r
diff --git
a/Projects/XPLAINBridge/XPLAINBridge.c
b/Projects/XPLAINBridge/XPLAINBridge.c
index
090b767
..
5457a22
100644
(file)
--- a/
Projects/XPLAINBridge/XPLAINBridge.c
+++ b/
Projects/XPLAINBridge/XPLAINBridge.c
@@
-81,6
+81,7
@@
int main(void)
Buffer_Initialize(&UARTtoUSB_Buffer);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
Buffer_Initialize(&UARTtoUSB_Buffer);
\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
\r
+ sei();
\r
\r
for (;;)
\r
{
\r
\r
for (;;)
\r
{
\r
diff --git
a/Projects/XPLAINBridge/XPLAINBridge.h
b/Projects/XPLAINBridge/XPLAINBridge.h
index
0c3a56c
..
877792d
100644
(file)
--- a/
Projects/XPLAINBridge/XPLAINBridge.h
+++ b/
Projects/XPLAINBridge/XPLAINBridge.h
@@
-40,6
+40,7
@@
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
#include <avr/power.h>
\r
+ #include <avr/interrupt.h>
\r
\r
#include "AVRISPDescriptors.h"
\r
#include "USARTDescriptors.h"
\r
\r
#include "AVRISPDescriptors.h"
\r
#include "USARTDescriptors.h"
\r