diff options
| author | Ha Thach <[email protected]> | 2024-05-06 18:31:29 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-06 18:31:29 +0700 |
| commit | 104a5daef49d91b54f7af499090efd478c936971 (patch) | |
| tree | 45d19d2faa146d2ce0ee57dfcdcb2b0c1fb01f0e /src/common/tusb_fifo.h | |
| parent | 4101369c350466f1f66762d17d221fd85d64b95f (diff) | |
| parent | c303b5d81d3dd9d5dc9f831af704e6d40366d7cf (diff) | |
Merge pull request #2618 from HiFiPhile/fifo_const_split
tusb_fifo: skip constant address functions if not used
Diffstat (limited to 'src/common/tusb_fifo.h')
| -rw-r--r-- | src/common/tusb_fifo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index 0de576601..6c0efb509 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -156,11 +156,15 @@ void tu_fifo_config_mutex(tu_fifo_t *f, osal_mutex_t wr_mutex, osal_mutex_t rd_m bool tu_fifo_write (tu_fifo_t* f, void const * p_data); uint16_t tu_fifo_write_n (tu_fifo_t* f, void const * p_data, uint16_t n); +#ifdef TUP_MEM_CONST_ADDR uint16_t tu_fifo_write_n_const_addr_full_words (tu_fifo_t* f, const void * data, uint16_t n); +#endif bool tu_fifo_read (tu_fifo_t* f, void * p_buffer); uint16_t tu_fifo_read_n (tu_fifo_t* f, void * p_buffer, uint16_t n); +#ifdef TUP_MEM_CONST_ADDR uint16_t tu_fifo_read_n_const_addr_full_words (tu_fifo_t* f, void * buffer, uint16_t n); +#endif bool tu_fifo_peek (tu_fifo_t* f, void * p_buffer); uint16_t tu_fifo_peek_n (tu_fifo_t* f, void * p_buffer, uint16_t n); |
