diff options
| author | hathach <[email protected]> | 2013-01-16 22:37:10 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-16 22:37:10 +0700 |
| commit | 53739ccd28478144ce9cde9d16410175a79a518d (patch) | |
| tree | 95aa55a0709ebb7cb7bd0e1ee552f05287ef3728 /tinyusb/common/fifo.h | |
| parent | 095129887e58cc2445afc1e2c10512e87c2c65ff (diff) | |
rename some fifo functions to be more consistent
Diffstat (limited to 'tinyusb/common/fifo.h')
| -rw-r--r-- | tinyusb/common/fifo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/common/fifo.h b/tinyusb/common/fifo.h index c79299352..c753e1d39 100644 --- a/tinyusb/common/fifo.h +++ b/tinyusb/common/fifo.h @@ -72,20 +72,20 @@ typedef struct _fifo_t bool fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQn_Type irq); bool fifo_write(fifo_t* f, uint8_t data); bool fifo_read(fifo_t* f, uint8_t *data); -uint16_t fifo_readArray(fifo_t* f, uint8_t * rx, uint16_t maxlen); +uint16_t fifo_read_n(fifo_t* f, uint8_t * rx, uint16_t maxlen); void fifo_clear(fifo_t *f); -static inline bool fifo_isEmpty(fifo_t* f) +static inline bool fifo_is_empty(fifo_t* f) { return (f->len == 0); } -static inline bool fifo_isFull(fifo_t* f) +static inline bool fifo_is_full(fifo_t* f) { return (f->len == f->size); } -static inline uint16_t fifo_getLength(fifo_t* f) +static inline uint16_t fifo_get_length(fifo_t* f) { return f->len; } |
