summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2019-09-10 01:03:24 -0400
committerNathan Conrad <[email protected]>2019-09-10 01:03:24 -0400
commitbc2a65b20bce8f81ccc4a6ef645946d9c26d2083 (patch)
tree29c90f71c54097aa90c9ce41d8896e6096a7ac04 /src/common
parent8f3c0663adda2067a63157f132345daea9507f38 (diff)
A few bug fixes, remove the unstested device notices, note supported boards in READMEs, and implement PMA
access stride (used on MCU's with 512 byte USB buffers).
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index c62a04128..4f0105d13 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -89,7 +89,7 @@ static inline uint32_t tu_u32(uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4)
static inline uint16_t tu_u16(uint8_t high, uint8_t low)
{
- return (((uint16_t) high) << 8) + low;
+ return (uint16_t)((((uint16_t) high) << 8) + low);
}
static inline uint8_t tu_u16_high(uint16_t u16) { return (uint8_t) (((uint16_t) (u16 >> 8)) & 0x00ff); }