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/Host/Incomplete | |
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/Host/Incomplete')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h index 8ff633404..6242d51d9 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/RFCOMMControl.h @@ -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 |