Fix XPLAINBridge project discarding characters from the USB interface due to a double...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 1 Aug 2010 14:03:13 +0000 (14:03 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 1 Aug 2010 14:03:13 +0000 (14:03 +0000)
commitff09cf9c73bbc2623a8c1420918747840382cc5b
tree41967f96971d3e1ed2a00f5449f3c83b5a19eba3
parentfb0e6597b611731e31b5d1285e52fc81a5ffd559
Fix XPLAINBridge project discarding characters from the USB interface due to a double read from the endpoint.

Make XPLAINBridge and USBtoSerial projects more reliable by forcing a flush if the UART-to-USB buffer becomes nearly full.

Reduce locking in the LightweightRingBuffer.h header files by only locking on the update of the buffer count, and require insertions and removals from each buffer to occur in only one execution thread.

Fix CDC_*_ReceiveByte() returning 0 when the interface is not configured, instead of the new -1 error value.

Fix CDC_Host_ReceiveByte() not re-freezing the pipe if no packet has been received.

Remove redundant Pipe token set commands in the CDC and RNDIS host class drivers.
13 files changed:
LUFA/Drivers/USB/Class/Device/CDC.c
LUFA/Drivers/USB/Class/Device/CDC.h
LUFA/Drivers/USB/Class/Host/CDC.c
LUFA/Drivers/USB/Class/Host/CDC.h
LUFA/Drivers/USB/Class/Host/RNDIS.c
LUFA/ManPages/LUFAPoweredProjects.txt
Projects/Benito/Benito.c
Projects/Benito/Lib/LightweightRingBuff.h
Projects/USBtoSerial/Lib/LightweightRingBuff.h
Projects/USBtoSerial/USBtoSerial.c
Projects/XPLAINBridge/Lib/LightweightRingBuff.h
Projects/XPLAINBridge/Lib/SoftUART.c
Projects/XPLAINBridge/XPLAINBridge.c