diff options
| author | hathach <[email protected]> | 2018-12-05 17:45:38 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-05 17:45:38 +0700 |
| commit | b2ec8230d9acffbc0df280832b0341b82584b226 (patch) | |
| tree | 25e4eae94d5731873fee9da2bfe216eec6d0cc2a /src/common | |
| parent | cf60b206528fc955bbdd1bfec2c7016a985313ea (diff) | |
| parent | 27793cbd3dba550f9a7124d5e539325904b795e8 (diff) | |
Merge pull request #19 from hathach/devlocal
queue lock/unlock with isr
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_fifo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index 61d92b602..e88c2ac6d 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -67,13 +67,12 @@ typedef struct uint8_t* buffer ; ///< buffer pointer
uint16_t depth ; ///< max items
uint16_t item_size ; ///< size of each item
+ bool overwritable ;
volatile uint16_t count ; ///< number of items in queue
volatile uint16_t wr_idx ; ///< write pointer
volatile uint16_t rd_idx ; ///< read pointer
- bool overwritable ;
-
#if CFG_FIFO_MUTEX
tu_fifo_mutex_t mutex;
#endif
|
