fork
Fork of USBDevice_STM32F103 by
Diff: USBMSD/USBMSD.h
- Revision:
- 10:1e3d126a322b
- Parent:
- 8:335f2506f422
- Child:
- 11:eeb3cbbaa996
--- a/USBMSD/USBMSD.h Mon Mar 04 13:37:51 2013 +0000 +++ b/USBMSD/USBMSD.h Thu May 30 17:16:57 2013 +0100 @@ -176,7 +176,7 @@ }; // Bulk-only CBW - typedef __packed struct { + typedef struct { uint32_t Signature; uint32_t Tag; uint32_t DataLength; @@ -184,15 +184,15 @@ uint8_t LUN; uint8_t CBLength; uint8_t CB[16]; - } CBW; + } __packed CBW; // Bulk-only CSW - typedef __packed struct { + typedef struct { uint32_t Signature; uint32_t Tag; uint32_t DataResidue; uint8_t Status; - } CSW; + } __packed CSW; //state of the bulk-only state machine Stage stage;