mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
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
|
||||
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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user