@@ -100,10 +100,10 @@ typedef enum {
100100} tusb_xfer_type_t ;
101101
102102typedef enum {
103- TUSB_DIR_OUT = 0 ,
104- TUSB_DIR_IN = 1 ,
103+ TUSB_DIR_OUT = 0u ,
104+ TUSB_DIR_IN = 1u ,
105105
106- TUSB_DIR_IN_MASK = 0x80
106+ TUSB_DIR_IN_MASK = 0x80u
107107} tusb_dir_t ;
108108
109109enum {
@@ -350,7 +350,7 @@ typedef struct TU_ATTR_PACKED {
350350 uint8_t bNumConfigurations ; ///< Number of possible configurations.
351351} tusb_desc_device_t ;
352352
353- TU_VERIFY_STATIC ( sizeof (tusb_desc_device_t ) == 18 , "size is not correct" );
353+ TU_VERIFY_STATIC ( sizeof (tusb_desc_device_t ) == 18u , "size is not correct" );
354354
355355// USB Binary Device Object Store (BOS) Descriptor
356356typedef struct TU_ATTR_PACKED {
@@ -360,7 +360,7 @@ typedef struct TU_ATTR_PACKED {
360360 uint8_t bNumDeviceCaps ; ///< Number of device capability descriptors in the BOS
361361} tusb_desc_bos_t ;
362362
363- TU_VERIFY_STATIC ( sizeof (tusb_desc_bos_t ) == 5 , "size is not correct" );
363+ TU_VERIFY_STATIC ( sizeof (tusb_desc_bos_t ) == 5u , "size is not correct" );
364364
365365/// USB Configuration Descriptor
366366typedef struct TU_ATTR_PACKED {
@@ -375,7 +375,7 @@ typedef struct TU_ATTR_PACKED {
375375 uint8_t bMaxPower ; ///< Maximum power consumption of the USB device from the bus in this specific configuration when the device is fully operational. Expressed in 2 mA units (i.e., 50 = 100 mA).
376376} tusb_desc_configuration_t ;
377377
378- TU_VERIFY_STATIC ( sizeof (tusb_desc_configuration_t ) == 9 , "size is not correct" );
378+ TU_VERIFY_STATIC ( sizeof (tusb_desc_configuration_t ) == 9u , "size is not correct" );
379379
380380/// USB Interface Descriptor
381381typedef struct TU_ATTR_PACKED {
@@ -391,7 +391,7 @@ typedef struct TU_ATTR_PACKED {
391391 uint8_t iInterface ; ///< Index of string descriptor describing this interface
392392} tusb_desc_interface_t ;
393393
394- TU_VERIFY_STATIC ( sizeof (tusb_desc_interface_t ) == 9 , "size is not correct" );
394+ TU_VERIFY_STATIC ( sizeof (tusb_desc_interface_t ) == 9u , "size is not correct" );
395395
396396/// USB Endpoint Descriptor
397397typedef struct TU_ATTR_PACKED {
@@ -411,7 +411,7 @@ typedef struct TU_ATTR_PACKED {
411411 uint8_t bInterval ; // Polling interval, in frames or microframes depending on the operating speed
412412} tusb_desc_endpoint_t ;
413413
414- TU_VERIFY_STATIC ( sizeof (tusb_desc_endpoint_t ) == 7 , "size is not correct" );
414+ TU_VERIFY_STATIC ( sizeof (tusb_desc_endpoint_t ) == 7u , "size is not correct" );
415415
416416/// USB Other Speed Configuration Descriptor
417417typedef struct TU_ATTR_PACKED {
@@ -441,7 +441,7 @@ typedef struct TU_ATTR_PACKED {
441441 uint8_t bReserved ; ///< Reserved for future use, must be zero
442442} tusb_desc_device_qualifier_t ;
443443
444- TU_VERIFY_STATIC ( sizeof (tusb_desc_device_qualifier_t ) == 10 , "size is not correct" );
444+ TU_VERIFY_STATIC ( sizeof (tusb_desc_device_qualifier_t ) == 10u , "size is not correct" );
445445
446446/// USB Interface Association Descriptor (IAD ECN)
447447typedef struct TU_ATTR_PACKED {
@@ -458,7 +458,7 @@ typedef struct TU_ATTR_PACKED {
458458 uint8_t iFunction ; ///< Index of the string descriptor describing the interface association.
459459} tusb_desc_interface_assoc_t ;
460460
461- TU_VERIFY_STATIC ( sizeof (tusb_desc_interface_assoc_t ) == 8 , "size is not correct" );
461+ TU_VERIFY_STATIC ( sizeof (tusb_desc_interface_assoc_t ) == 8u , "size is not correct" );
462462
463463// USB String Descriptor
464464typedef struct TU_ATTR_PACKED {
@@ -528,7 +528,7 @@ typedef struct TU_ATTR_PACKED {
528528 uint16_t wLength ;
529529} tusb_control_request_t ;
530530
531- TU_VERIFY_STATIC ( sizeof (tusb_control_request_t ) == 8 , "size is not correct" );
531+ TU_VERIFY_STATIC ( sizeof (tusb_control_request_t ) == 8u , "size is not correct" );
532532
533533TU_ATTR_PACKED_END // End of all packed definitions
534534TU_ATTR_BIT_FIELD_ORDER_END
0 commit comments