diff options
| author | Ha Thach <[email protected]> | 2020-11-07 10:52:14 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-07 10:52:14 +0700 |
| commit | a708ab62540cf952048c97e6952bd95fdc823d90 (patch) | |
| tree | 9280e1a6138859d765af4b2c4aae7dc62a620e75 /src/common | |
| parent | 075334af80303488a8c874255d725cb4ca15a7de (diff) | |
| parent | 2907b1e4382df313ba8eb713fa4d0e3d3bc6e7cf (diff) | |
Merge pull request #553 from hathach/host-async-control
Host async control
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 70d0db942..d6b6ea627 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -276,6 +276,8 @@ typedef struct TU_ATTR_PACKED uint8_t bNumConfigurations ; ///< Number of possible configurations. } tusb_desc_device_t; +TU_VERIFY_STATIC( sizeof(tusb_desc_device_t) == 18, "size is not correct"); + // USB Binary Device Object Store (BOS) Descriptor typedef struct TU_ATTR_PACKED { @@ -431,7 +433,7 @@ typedef struct TU_ATTR_PACKED{ uint16_t wLength; } tusb_control_request_t; -TU_VERIFY_STATIC( sizeof(tusb_control_request_t) == 8, "mostly compiler option issue"); +TU_VERIFY_STATIC( sizeof(tusb_control_request_t) == 8, "size is not correct"); // TODO move to somewhere suitable static inline uint8_t bm_request_type(uint8_t direction, uint8_t type, uint8_t recipient) |
