aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Common/MassStorage.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-03-11 06:47:39 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-03-11 06:47:39 +0000
commitc8a438d66c40f444b5b5fa6a814492fef75886ed (patch)
tree96fedf9dcc53d7bea53f4f01dd6a7cb3a73b6c21 /LUFA/Drivers/USB/Class/Common/MassStorage.h
parente4b3e3fc65c0f0bbb10047c159a4771d6359e9b6 (diff)
downloadlufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.tar.gz
lufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.tar.bz2
lufa-c8a438d66c40f444b5b5fa6a814492fef75886ed.zip
Add structure padding to the appropriate descriptor structures to maintain correct alignments on larger architectures.
Fix EVK1101 swapped joystick Right/Down masks.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Common/MassStorage.h')
-rw-r--r--LUFA/Drivers/USB/Class/Common/MassStorage.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/MassStorage.h b/LUFA/Drivers/USB/Class/Common/MassStorage.h
index ae22f5312..d641c33a3 100644
--- a/LUFA/Drivers/USB/Class/Common/MassStorage.h
+++ b/LUFA/Drivers/USB/Class/Common/MassStorage.h
@@ -266,7 +266,7 @@
uint8_t LUN; /**< Logical Unit number this command is issued to. */
uint8_t SCSICommandLength; /**< Length of the issued SCSI command within the SCSI command data array. */
uint8_t SCSICommandData[16]; /**< Issued SCSI command in the Command Block. */
- } MS_CommandBlockWrapper_t;
+ } ATTR_PACKED MS_CommandBlockWrapper_t;
/** \brief Mass Storage Class Command Status Wrapper.
*
@@ -278,7 +278,7 @@
uint32_t Tag; /**< Unique command ID value, to associate a command block wrapper with its command status wrapper. */
uint32_t DataTransferResidue; /**< Number of bytes of data not processed in the SCSI command. */
uint8_t Status; /**< Status code of the issued command - a value from the \ref MS_CommandStatusCodes_t enum. */
- } MS_CommandStatusWrapper_t;
+ } ATTR_PACKED MS_CommandStatusWrapper_t;
/** \brief Mass Storage Class SCSI Sense Structure
*
@@ -306,7 +306,7 @@
uint8_t AdditionalSenseQualifier;
uint8_t FieldReplaceableUnitCode;
uint8_t SenseKeySpecific[3];
- } SCSI_Request_Sense_Response_t;
+ } ATTR_PACKED SCSI_Request_Sense_Response_t;
/** \brief Mass Storage Class SCSI Inquiry Structure.
*
@@ -347,7 +347,7 @@
uint8_t VendorID[8];
uint8_t ProductID[16];
uint8_t RevisionID[4];
- } SCSI_Inquiry_Response_t;
+ } ATTR_PACKED SCSI_Inquiry_Response_t;
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)