From 5f88def9c9fd7e17b8765fda7dceea051a1faa85 Mon Sep 17 00:00:00 2001 From: Reinhard Panhuber Date: Fri, 30 Apr 2021 15:14:27 +0200 Subject: [PATCH] Comment cleanup --- src/common/tusb_fifo.c | 14 +++++--------- src/common/tusb_fifo.h | 3 --- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 306b6865..c80bb149 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -884,12 +884,9 @@ void tu_fifo_advance_read_pointer(tu_fifo_t *f, uint16_t n) Returns the length and pointer from which bytes can be read in a linear manner. This is of major interest for DMA transmissions. If returned length is zero the - corresponding pointer is invalid. The returned length is limited to the number - of ITEMS n which the user wants to write into the buffer. - The write pointer does NOT get advanced, use tu_fifo_advance_read_pointer() to - do so! If the length returned is less than n i.e. lenoverwritable) { diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index c6bcdaec..7bc6b60b 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -140,9 +140,6 @@ void tu_fifo_advance_read_pointer (tu_fifo_t *f, uint16_t n); // If you want to read/write from/to the FIFO by use of a DMA, you may need to conduct two copies to handle a possible wrapping part // This functions deliver a pointer to start reading/writing from/to and a valid linear length along which no wrap occurs. -// In case not all of your data is available within one read/write, update the read/write pointer by -// tu_fifo_advance_read_pointer()/tu_fifo_advance_write_pointer and conduct a second read/write operation -// TODO - update comments void tu_fifo_get_read_info(tu_fifo_t *f, tu_fifo_buffer_info_t *info); void tu_fifo_get_write_info(tu_fifo_t *f, tu_fifo_buffer_info_t *info, uint16_t n);