Exposed some useful functions in FIFO library. Updated Ringbuffer library to my latest.

This commit is contained in:
skarg
2010-03-22 21:36:27 +00:00
parent d3207bf5e5
commit 35f0a52d51
4 changed files with 155 additions and 108 deletions
+2 -2
View File
@@ -49,7 +49,7 @@
* ALGORITHM: none
* NOTES: none
*****************************************************************************/
static unsigned FIFO_Count(
unsigned FIFO_Count(
FIFO_BUFFER const *b)
{
return (b ? (b->head - b->tail) : 0);
@@ -61,7 +61,7 @@ static unsigned FIFO_Count(
* ALGORITHM: none
* NOTES: none
*****************************************************************************/
static bool FIFO_Full(
bool FIFO_Full(
FIFO_BUFFER const *b)
{
return (b ? (FIFO_Count(b) == b->buffer_len) : true);