diff options
| author | hathach <[email protected]> | 2019-09-16 11:27:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-16 11:27:52 +0700 |
| commit | 19e7b7d85cc65fd9d5eb1d7297651f26971e605d (patch) | |
| tree | a90ac28dc5c84602aa9573973d4425f4a513065a /src/common | |
| parent | 98a68d600cc3eebc9be61ca71ec4b65ea8390816 (diff) | |
| parent | 9c5ae0369b2113ca3c7c8ac1240315ac1e7f1190 (diff) | |
Merge pull request #155 from hathach/develop
fix #154 forward all endpoint recipeint request to class driver
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 2 | ||||
| -rw-r--r-- | src/common/tusb_types.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 4f0105d13..57c6e2fcf 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -38,7 +38,7 @@ //--------------------------------------------------------------------+
// Macros Helper
//--------------------------------------------------------------------+
-#define TU_ARRAY_SZIE(_arr) ( sizeof(_arr) / sizeof(_arr[0]) )
+#define TU_ARRAY_SIZE(_arr) ( sizeof(_arr) / sizeof(_arr[0]) )
#define TU_MIN(_x, _y) ( (_x) < (_y) ) ? (_x) : (_y) )
#define TU_MAX(_x, _y) ( (_x) > (_y) ) ? (_x) : (_y) )
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index a50e89934..ad42baad7 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -125,7 +125,8 @@ typedef enum {
TUSB_REQ_TYPE_STANDARD = 0,
TUSB_REQ_TYPE_CLASS,
- TUSB_REQ_TYPE_VENDOR
+ TUSB_REQ_TYPE_VENDOR,
+ TUSB_REQ_TYPE_INVALID
} tusb_request_type_t;
typedef enum
|
