diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-10 06:43:02 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-04-10 06:43:02 +0000 |
commit | 852b5e612d549d1f086ceca4df0b589ac24cb37f (patch) | |
tree | ced320248de1fb786dda5e515ad306cbd81086dd /Demos/Device/Incomplete/Sideshow/Lib | |
parent | d08116b02fd0032f24be18b255c9d80ec9ca316d (diff) | |
download | lufa-852b5e612d549d1f086ceca4df0b589ac24cb37f.tar.gz lufa-852b5e612d549d1f086ceca4df0b589ac24cb37f.tar.bz2 lufa-852b5e612d549d1f086ceca4df0b589ac24cb37f.zip |
Remove redundant type information for bitfield elements, other than the signed/unsignedness of the element.
Change type of USB_SelectedPipe and USB_SelectedEndpoint for the AVR32 UC3 architecture to uint32_t to reduce the compiled code size.
Diffstat (limited to 'Demos/Device/Incomplete/Sideshow/Lib')
-rw-r--r-- | Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h index 6d1110c7c..794b91e9e 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h @@ -65,13 +65,13 @@ /* Type Defines: */ typedef struct { - uint32_t Chunks[4]; + uint32_t Chunks[4]; } GUID_t; typedef struct { - uint16_t LengthInBytes; - int UnicodeString[]; + uint16_t LengthInBytes; + int UnicodeString[]; } Unicode_String_t; typedef union @@ -80,19 +80,19 @@ struct { - uint8_t TypeBytes[3]; + uint8_t TypeBytes[3]; - int ErrorCode : 6; - int NAK : 1; - int Response : 1; + unsigned ErrorCode : 6; + unsigned NAK : 1; + unsigned Response : 1; } TypeFields; } SideShowPacketType_t; typedef struct { - uint32_t Length; - SideShowPacketType_t Type; - uint16_t Number; + uint32_t Length; + SideShowPacketType_t Type; + uint16_t Number; } SideShow_PacketHeader_t; /* Function Prototypes: */ |