diff options
| author | hathach <[email protected]> | 2024-01-26 22:55:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-01-26 22:55:55 +0700 |
| commit | b5cd673330fc87f2981ecf139b24940df5cb3cfe (patch) | |
| tree | 4d300dc20c50660a05a6d4a3b2bace92c1ad1135 /src/common | |
| parent | bd3c4fbe1e73256be5d8553454c25e78749bc6c6 (diff) | |
rename and add more video descriptors
use struct to define uvc descriptor for video_capture since uvc is
rather too complicated to use macro templates
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 |
