Add explicit guards to all device mode tasks to ensure the device is connected and...
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 21 Jul 2009 02:48:41 +0000 (02:48 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 21 Jul 2009 02:48:41 +0000 (02:48 +0000)
commit67f390fe746ccc4d1dceac23f590eb1723cb7ff2
treeeafc8a4dcb64a038afcb16fcae8d48033dc74249
parentbf50959b8016adbf6b295178b26b8173514dd060
Add explicit guards to all device mode tasks to ensure the device is connected and configured before running the task, to prevent any user tasks from locking up the main USB task if the device has not been properly configured.
19 files changed:
Demos/Device/Incomplete/Sideshow/Sideshow.c
Demos/Device/LowLevel/AudioInput/AudioInput.c
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
Demos/Device/LowLevel/CDC/CDC.c
Demos/Device/LowLevel/DualCDC/DualCDC.c
Demos/Device/LowLevel/GenericHID/GenericHID.c
Demos/Device/LowLevel/Joystick/Joystick.c
Demos/Device/LowLevel/Keyboard/Keyboard.c
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
Demos/Device/LowLevel/MIDI/MIDI.c
Demos/Device/LowLevel/Mouse/Mouse.c
Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.c
Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
Demos/Host/ClassDriver/CDCHost/CDCHost.c
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
LUFA/Drivers/USB/Class/Device/CDC.c
LUFA/Drivers/USB/Class/Device/HID.c
LUFA/Drivers/USB/Class/Device/MassStorage.c
LUFA/Drivers/USB/Class/Device/RNDIS.c