Explorar o código

rename fifo_count

hathach %!s(int64=8) %!d(string=hai) anos
pai
achega
c8e9fb52d4
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      tinyusb/common/fifo.c
  2. 1 1
      tinyusb/common/fifo.h

+ 1 - 1
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)

+ 1 - 1
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;
 }