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.
This commit is contained in:
Dean Camera 2011-04-10 06:43:02 +00:00
parent d08116b02f
commit 852b5e612d
18 changed files with 195 additions and 183 deletions

View file

@ -77,9 +77,9 @@
/* Type Defines: */
typedef struct
{
unsigned char EA : 1;
unsigned char CR : 1;
unsigned char DLCI : 6;
unsigned EA : 1;
unsigned CR : 1;
unsigned DLCI : 6;
} RFCOMM_Address_t;
typedef struct
@ -90,21 +90,21 @@
typedef struct
{
unsigned char EA : 1;
unsigned char CR : 1;
unsigned char Command : 6;
unsigned EA : 1;
unsigned CR : 1;
unsigned Command : 6;
} RFCOMM_Command_t;
typedef struct
{
uint8_t DLCI;
unsigned char FrameType : 4;
unsigned char ConvergenceLayer : 4;
uint8_t Priority;
uint8_t ACKTimerTicks;
uint16_t MaximumFrameSize;
uint8_t MaxRetransmissions;
uint8_t RecoveryWindowSize;
uint8_t DLCI;
unsigned FrameType : 4;
unsigned ConvergenceLayer : 4;
uint8_t Priority;
uint8_t ACKTimerTicks;
uint16_t MaximumFrameSize;
uint8_t MaxRetransmissions;
uint8_t RecoveryWindowSize;
} RFCOMM_DPN_Parameters_t;
typedef struct