diff options
| author | Ha Thach <[email protected]> | 2026-01-06 09:42:16 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-06 09:42:16 +0700 |
| commit | 593dce28349cf5b1299c2cf1193312cb783574f3 (patch) | |
| tree | e190a759943adc2a57bc0dd547870ae323cf1d51 /src/common/tusb_common.h | |
| parent | 3eafddb02a3347873dc1816f53b428518eb97c61 (diff) | |
| parent | 9de3e108b4d38677c5352786ef038600550598d3 (diff) | |
Merge pull request #3441 from hathach/fifo-access-mode
HWFIFO access-mode refactor and stride-aware FIFO fixes across FSDEV/RUSB2/MUSB
Diffstat (limited to 'src/common/tusb_common.h')
| -rw-r--r-- | src/common/tusb_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index d74760608..6ac1405f3 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -329,7 +329,7 @@ TU_ATTR_ALWAYS_INLINE static inline void tu_unaligned_write16(void *mem, uint16_ #endif -// scatter read 4 bytes from two buffers. Parameter are not checked +// scatter read 4 bytes from two buffers (LE). Parameter are not checked TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_scatter_read32(const uint8_t *buf1, uint8_t len1, const uint8_t *buf2, uint8_t len2) { uint32_t result = 0; @@ -348,7 +348,7 @@ TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_scatter_read32(const uint8_t *bu return result; } -// scatter write 4 bytes to two buffers. Parameter are not checked +// scatter write 4 bytes (LE) to two buffers. Parameter are not checked TU_ATTR_ALWAYS_INLINE static inline void tu_scatter_write32(uint32_t value, uint8_t *buf1, uint8_t len1, uint8_t *buf2, uint8_t len2) { for (uint8_t i = 0; i < len1; ++i) { |
