Changed to use stdint types.
This commit is contained in:
@@ -83,17 +83,17 @@ enum dfu_state {
|
||||
|
||||
#define DFU_FUNCTIONAL 0x21
|
||||
struct usb_dfu_descriptor {
|
||||
u8 bLength;
|
||||
u8 bDescriptorType;
|
||||
u8 bmAttributes;
|
||||
uint8_t bLength;
|
||||
uint8_t bDescriptorType;
|
||||
uint8_t bmAttributes;
|
||||
#define USB_DFU_CAN_DOWNLOAD 0x01
|
||||
#define USB_DFU_CAN_UPLOAD 0x02
|
||||
#define USB_DFU_MANIFEST_TOLERANT 0x04
|
||||
#define USB_DFU_WILL_DETACH 0x08
|
||||
|
||||
u16 wDetachTimeout;
|
||||
u16 wTransferSize;
|
||||
u16 bcdDFUVersion;
|
||||
uint16_t wDetachTimeout;
|
||||
uint16_t wTransferSize;
|
||||
uint16_t bcdDFUVersion;
|
||||
} __packed;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user