diff options
| author | Ha Thach <[email protected]> | 2024-01-30 00:12:09 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-30 00:12:09 +0700 |
| commit | b4c0530fda3031010e4badd8e1af54eb10aa1f46 (patch) | |
| tree | 71a66c714ef95ae3e019781671fddad937d3d62f /src/common | |
| parent | bd3c4fbe1e73256be5d8553454c25e78749bc6c6 (diff) | |
| parent | 55950656cbee915662a9a33477ddd549489ffcf0 (diff) | |
Merge pull request #2435 from hathach/enhance-uvc
Enhance UVC decriptors and example
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index d4ef1fd09..2c5dce723 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -399,6 +399,8 @@ typedef struct TU_ATTR_PACKED { uint8_t iFunction ; ///< Index of the string descriptor describing the interface association. } tusb_desc_interface_assoc_t; +TU_VERIFY_STATIC( sizeof(tusb_desc_interface_assoc_t) == 8, "size is not correct"); + // USB String Descriptor typedef struct TU_ATTR_PACKED { uint8_t bLength ; ///< Size of this descriptor in bytes @@ -469,7 +471,6 @@ typedef struct TU_ATTR_PACKED { TU_VERIFY_STATIC( sizeof(tusb_control_request_t) == 8, "size is not correct"); - TU_ATTR_PACKED_END // End of all packed definitions TU_ATTR_BIT_FIELD_ORDER_END |
