diff options
| author | hathach <[email protected]> | 2018-12-11 16:18:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-11 16:18:56 +0700 |
| commit | 600fac1845abec7630adda4dc7487f7711a58300 (patch) | |
| tree | 5c81faed36193ab39ed33fb0073f320ddccac7c8 /src/common | |
| parent | dbc560658a900525acd11ffcae2e59839d9c6fe5 (diff) | |
fix build error with ohci
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 6ba713084..8be1e87f6 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -392,9 +392,9 @@ static inline uint8_t edpt_number(uint8_t addr) return addr & (~TUSB_DIR_IN_MASK);
}
-static inline uint8_t edpt_addr(uint8_t num, tusb_dir_t dir)
+static inline uint8_t edpt_addr(uint8_t num, uint8_t dir)
{
- return num | (dir == TUSB_DIR_IN ? TUSB_DIR_IN_MASK : 0);
+ return num | (dir ? TUSB_DIR_IN_MASK : 0);
}
//--------------------------------------------------------------------+
|
