diff options
| author | Ha Thach <[email protected]> | 2024-05-06 18:28:46 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-06 18:28:46 +0700 |
| commit | 4101369c350466f1f66762d17d221fd85d64b95f (patch) | |
| tree | 073b3bbbc50c38fbc34a469bf60d698e0cee6b68 /src/common/tusb_fifo.h | |
| parent | a435befcdeb6bbd40cf3ba342756f8d73f031957 (diff) | |
| parent | dfda0b124f4e436e81770cb4986523da1036f654 (diff) | |
Merge pull request #2622 from hathach/ci-update
Ci update
Diffstat (limited to 'src/common/tusb_fifo.h')
| -rw-r--r-- | src/common/tusb_fifo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index 2d9f5e667..0de576601 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -145,13 +145,13 @@ bool tu_fifo_clear(tu_fifo_t *f); bool tu_fifo_config(tu_fifo_t *f, void* buffer, uint16_t depth, uint16_t item_size, bool overwritable); #if OSAL_MUTEX_REQUIRED - TU_ATTR_ALWAYS_INLINE static inline - void tu_fifo_config_mutex(tu_fifo_t *f, osal_mutex_t wr_mutex, osal_mutex_t rd_mutex) { - f->mutex_wr = wr_mutex; - f->mutex_rd = rd_mutex; - } +TU_ATTR_ALWAYS_INLINE static inline +void tu_fifo_config_mutex(tu_fifo_t *f, osal_mutex_t wr_mutex, osal_mutex_t rd_mutex) { + f->mutex_wr = wr_mutex; + f->mutex_rd = rd_mutex; +} #else - #define tu_fifo_config_mutex(_f, _wr_mutex, _rd_mutex) +#define tu_fifo_config_mutex(_f, _wr_mutex, _rd_mutex) #endif bool tu_fifo_write (tu_fifo_t* f, void const * p_data); |
