diff options
| author | hathach <[email protected]> | 2019-11-27 23:20:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-27 23:20:48 +0700 |
| commit | 40b454cf28e5a86dac8d261f1276ace108446ffe (patch) | |
| tree | 32fa8ef83f18d9ccda49f76682334dac53634136 /src/common | |
| parent | 6225d5bcfdf3b416d2dd109e88b67bc4fcefe249 (diff) | |
get passed first get device descriptor
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 59e1fe7fd..d162e4e8e 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -139,9 +139,9 @@ static inline uint8_t tu_log2(uint32_t value) }
// Bit
-static inline uint32_t tu_bit_set (uint32_t value, uint8_t n) { return value | TU_BIT(n); }
-static inline uint32_t tu_bit_clear(uint32_t value, uint8_t n) { return value & (~TU_BIT(n)); }
-static inline bool tu_bit_test (uint32_t value, uint8_t n) { return (value & TU_BIT(n)) ? true : false; }
+static inline uint32_t tu_bit_set (uint32_t value, uint8_t pos) { return value | TU_BIT(pos); }
+static inline uint32_t tu_bit_clear(uint32_t value, uint8_t pos) { return value & (~TU_BIT(pos)); }
+static inline bool tu_bit_test (uint32_t value, uint8_t pos) { return (value & TU_BIT(pos)) ? true : false; }
/*------------------------------------------------------------------*/
/* Count number of arguments of __VA_ARGS__
|
