Alter the ring buffer library headers to have both atomic and non-atomic insertion...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 12 Jul 2010 07:04:19 +0000 (07:04 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 12 Jul 2010 07:04:19 +0000 (07:04 +0000)
commit0bcc82ac28ef9461f04e47f0b0885ee156d926f9
tree1bca0a037728a614541ad85290bf64ab12d73ac9
parent3fd246041b10609a204a6352aa1b86d7000171d4
Alter the ring buffer library headers to have both atomic and non-atomic insertion/removal routines. Modify the existing projects so that buffer operations performed in an ISR use the shorted non-atomic versions, as they are already performed in a blocking ISR.

Alter USBtoSerial demo so that it does not enter a blocking loop to send data from the USB to the USART, as this can cause dropped bytes in the reception code if large amounts of data are sent in both directions at the same time. Added a flush timer to the USBtoSerial code for the USART to USB interface, so that multiple bytes can be sent in the same USB packet.
LUFA/ManPages/ChangeLog.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/XPLAINBridge.c