aboutsummaryrefslogtreecommitdiff
path: root/include/usb/dfu.h
diff options
context:
space:
mode:
authorUwe Hermann2010-12-29 17:28:06 +0100
committerUwe Hermann2010-12-29 17:28:06 +0100
commitc39eb69e4d923c9c5fa8be53252ee0ffd15dffb9 (patch)
treee4f194d9c1720c4a1318c4f73e9de7dfa7da5db8 /include/usb/dfu.h
parent6a16711bee34e0445a95a9cbffc17fdd1d580950 (diff)
Replace uint8_t with u8 et al, fix whitespace.
Diffstat (limited to 'include/usb/dfu.h')
-rw-r--r--include/usb/dfu.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/usb/dfu.h b/include/usb/dfu.h
index cca07cb..2abd230 100644
--- a/include/usb/dfu.h
+++ b/include/usb/dfu.h
@@ -27,7 +27,7 @@ enum dfu_req {
DFU_GETSTATUS,
DFU_CLRSTATUS,
DFU_GETSTATE,
- DFU_ABORT
+ DFU_ABORT,
};
enum dfu_status {
@@ -65,17 +65,17 @@ enum dfu_state {
#define DFU_FUNCTIONAL 0x21
struct usb_dfu_descriptor {
- uint8_t bLength;
- uint8_t bDescriptorType;
- uint8_t bmAttributes;
+ u8 bLength;
+ u8 bDescriptorType;
+ u8 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
- uint16_t wDetachTimeout;
- uint16_t wTransferSize;
- uint16_t bcdDFUVersion;
+ u16 wDetachTimeout;
+ u16 wTransferSize;
+ u16 bcdDFUVersion;
} __attribute__((packed));
#endif