Make Endpoint control transfers more reliable; early-abort when an incomplete packet...
authorDean Camera <dean@fourwalledcubicle.com>
Thu, 6 Aug 2009 14:22:04 +0000 (14:22 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Thu, 6 Aug 2009 14:22:04 +0000 (14:22 +0000)
commitc830fcb0e1d42c1300ebe78a8b33924054b63a87
tree04a8b7a112fce02523c3ba78b11e8b9db3eb3164
parent384848253274a7afa74e463a56e1257cf3b8924e
Make Endpoint control transfers more reliable; early-abort when an incomplete packet is sent from the host (indicating end of transfer), add check for control reads to ensure that no more than wLength bytes are read from the interface.

Condense sequential printf_P/puts_P calls to single printf_P calls for size and clarity.
14 files changed:
Demos/Host/ClassDriver/CDCHost/CDCHost.c
Demos/Host/ClassDriver/MouseHost/MouseHost.c
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
Demos/Host/LowLevel/CDCHost/CDCHost.c
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
Demos/Host/LowLevel/MouseHost/MouseHost.c
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
Demos/Host/LowLevel/PrinterHost/PrinterHost.c
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
Demos/OTG/TestApp/TestEvents.c
LUFA/Drivers/USB/LowLevel/Template/Template_Endpoint_Control_R.c