diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-03-26 03:22:02 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-03-26 03:22:02 +0000 |
commit | ca641bba8356851dd8144bde4a10bc5e5c647930 (patch) | |
tree | fee141b265f00a987e34751c5ec5095b4edc333b /Demos/Host | |
parent | 1c9092a8a6db41709b9cb77534f06011868baf01 (diff) | |
download | lufa-ca641bba8356851dd8144bde4a10bc5e5c647930.tar.gz lufa-ca641bba8356851dd8144bde4a10bc5e5c647930.tar.bz2 lufa-ca641bba8356851dd8144bde4a10bc5e5c647930.zip |
Corrected bitfields -- the smallest datatype required for each bitfield is now used, rather than relying on GCC to truncate unused bytes in bitfields (thanks to Walt Sacuta).
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/MassStorageHost/MassStoreCommands.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Demos/Host/MassStorageHost/MassStoreCommands.h b/Demos/Host/MassStorageHost/MassStoreCommands.h index d3ddfeeb9..adab4fb0a 100644 --- a/Demos/Host/MassStorageHost/MassStoreCommands.h +++ b/Demos/Host/MassStorageHost/MassStoreCommands.h @@ -109,16 +109,16 @@ */
typedef struct
{
- unsigned int ReponseCode : 7;
- unsigned int Valid : 1;
+ unsigned char ReponseCode : 7;
+ unsigned char Valid : 1;
uint8_t SegmentNumber;
- unsigned int SenseKey : 4;
- unsigned int _RESERVED1 : 1;
- unsigned int ILI : 1;
- unsigned int EOM : 1;
- unsigned int FileMark : 1;
+ unsigned char SenseKey : 4;
+ unsigned char _RESERVED1 : 1;
+ unsigned char ILI : 1;
+ unsigned char EOM : 1;
+ unsigned char FileMark : 1;
uint8_t Information[4];
uint8_t AdditionalLength;
|