diff options
| author | hathach <[email protected]> | 2021-04-26 14:43:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-04-26 14:43:58 +0700 |
| commit | 8ebdf2b0979c39e7a709939ad38b5916838f1318 (patch) | |
| tree | d9758143fc2fd6ca531fa3a8405fae3d8e484500 /src/common | |
| parent | f14daf208135802f45d9f1c4276f3655e12dd123 (diff) | |
ip3511 correct buffer offset, nbytes layout for highspeed port1
able to get passed enumeration and up to READ10
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 147856d45..705ff867c 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -115,8 +115,8 @@ TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align(uint32_t value, uint32_t a return value & ((uint32_t) ~(alignment-1)); } -TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align32 (uint32_t value) { return (value & 0xFFFFFFE0UL); } TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align16 (uint32_t value) { return (value & 0xFFFFFFF0UL); } +TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align32 (uint32_t value) { return (value & 0xFFFFFFE0UL); } TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align4k (uint32_t value) { return (value & 0xFFFFF000UL); } TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_offset4k(uint32_t value) { return (value & 0xFFFUL); } |
