diff options
| author | HiFiPhile <[email protected]> | 2024-04-29 22:35:55 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2024-04-29 22:35:55 +0200 |
| commit | c303b5d81d3dd9d5dc9f831af704e6d40366d7cf (patch) | |
| tree | c4382224be0eea5e37ed83ec7d00f596b1430177 /src/common/tusb_fifo.h | |
| parent | bf1540af4c3a57245b946c8622454c05e7fc098e (diff) | |
Guard const addr fifo functions with TUP_MEM_CONST_ADDR.
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 2d9f5e667..e50d9afd4 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -156,11 +156,15 @@ bool tu_fifo_config(tu_fifo_t *f, void* buffer, uint16_t depth, uint16_t item_si 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); |
