rename fifo_count

This commit is contained in:
hathach 2018-03-08 14:02:53 +07:00
parent 817f23e5e0
commit c8e9fb52d4
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ bool fifo_read(fifo_t* f, void * p_buffer)
@param[in] count
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)

View File

@ -131,7 +131,7 @@ static inline bool fifo_full(fifo_t* f)
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;
}