mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
Merge pull request #899 from Product-Creation-Studio/ned-pcs/fix-initializer
Changed order of struct initializer to avoid compiler error
This commit is contained in:
commit
03643d551d
@ -86,8 +86,8 @@ typedef struct
|
|||||||
.depth = _depth, \
|
.depth = _depth, \
|
||||||
.item_size = sizeof(_type), \
|
.item_size = sizeof(_type), \
|
||||||
.overwritable = _overwritable, \
|
.overwritable = _overwritable, \
|
||||||
.max_pointer_idx = 2*(_depth)-1, \
|
|
||||||
.non_used_index_space = UINT16_MAX - (2*(_depth)-1), \
|
.non_used_index_space = UINT16_MAX - (2*(_depth)-1), \
|
||||||
|
.max_pointer_idx = 2*(_depth)-1, \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TU_FIFO_DEF(_name, _depth, _type, _overwritable) \
|
#define TU_FIFO_DEF(_name, _depth, _type, _overwritable) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user