diff options
| author | hathach <[email protected]> | 2018-03-08 14:02:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-08 14:02:53 +0700 |
| commit | c8e9fb52d40d17a9d3ca859e863f28c055fae3d7 (patch) | |
| tree | 45a27447840b5849584c5366707cbb86024d2f3a | |
| parent | 817f23e5e0f976814dfa0b5ccfa1f9f5cd1c3885 (diff) | |
rename fifo_count
| -rw-r--r-- | tinyusb/common/fifo.c | 2 | ||||
| -rw-r--r-- | tinyusb/common/fifo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/common/fifo.c b/tinyusb/common/fifo.c index 397514dc0..c0dba4fdb 100644 --- a/tinyusb/common/fifo.c +++ b/tinyusb/common/fifo.c @@ -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)
diff --git a/tinyusb/common/fifo.h b/tinyusb/common/fifo.h index 936719c2d..1c524f3a5 100644 --- a/tinyusb/common/fifo.h +++ b/tinyusb/common/fifo.h @@ -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;
}
|
