X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/fb3fcb968ea70f8b5c6d8f7edde65745e49628f2..6933f2e1a543b066ebe734bd126a7ff2f1c2777f:/Demos/Device/USBtoSerial/RingBuff.h diff --git a/Demos/Device/USBtoSerial/RingBuff.h b/Demos/Device/USBtoSerial/RingBuff.h index 4b6bfde66..23288d87a 100644 --- a/Demos/Device/USBtoSerial/RingBuff.h +++ b/Demos/Device/USBtoSerial/RingBuff.h @@ -29,8 +29,8 @@ */ /* Buffer Configuration: */ - /* Buffer length - select static size of created ringbuffers: */ - #define BUFF_STATICSIZE 128 // Set to the static ringbuffer size for all ringbuffers (place size after define) + /* Buffer length - select static size of created ring buffers: */ + #define BUFF_STATICSIZE 128 // Set to the static ring buffer size for all ring buffers (place size after define) /* Volatile mode - uncomment to make buffers volatile, for use in ISRs, etc: */ #define BUFF_VOLATILE // Uncomment to cause all ring buffers to become volatile (and atomic if multi-byte) in access @@ -40,9 +40,9 @@ // #define BUFF_DROPNEW // Uncomment to cause full ring buffers to drop the new character when full // #define BUFF_NODROPCHECK // Uncomment to ignore full ring buffer checks - checking left to user! - /* Underflow behaviour - select behaviour when Buffer_GetElement is called with an empty ringbuffer: */ - //#define BUFF_EMPTYRETURNSZERO // Uncomment to return 0 when an empty ringbuffer is read - #define BUFF_NOEMPTYCHECK // Uncomment to disable checking of empty ringbuffers - checking left to user! + /* Underflow behaviour - select behaviour when Buffer_GetElement is called with an empty ring buffer: */ + //#define BUFF_EMPTYRETURNSZERO // Uncomment to return 0 when an empty ring buffer is read + #define BUFF_NOEMPTYCHECK // Uncomment to disable checking of empty ring buffers - checking left to user! /* Buffer storage type - set the datatype for the stored data */ #define BUFF_DATATYPE uint8_t // Change to the data type that is going to be stored into the buffer