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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user