rename fifo_count
This commit is contained in:
parent
817f23e5e0
commit
c8e9fb52d4
|
@ -126,7 +126,7 @@ bool fifo_read(fifo_t* f, void * p_buffer)
|
||||||
@param[in] count
|
@param[in] count
|
||||||
Number of element that buffer can afford
|
Number of element that buffer can afford
|
||||||
|
|
||||||
@returns number of bytes read from the FIFO
|
@returns number of items read from the FIFO
|
||||||
*/
|
*/
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
uint16_t fifo_read_n (fifo_t* f, void * p_buffer, uint16_t count)
|
uint16_t fifo_read_n (fifo_t* f, void * p_buffer, uint16_t count)
|
||||||
|
|
|
@ -131,7 +131,7 @@ static inline bool fifo_full(fifo_t* f)
|
||||||
return (f->count == f->depth);
|
return (f->count == f->depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint16_t fifo_get_length(fifo_t* f)
|
static inline uint16_t fifo_count(fifo_t* f)
|
||||||
{
|
{
|
||||||
return f->count;
|
return f->count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue