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:
@@ -39,7 +39,7 @@
|
||||
uint8_t USB_ControlEndpointSize = ENDPOINT_CONTROLEP_DEFAULT_SIZE;
|
||||
#endif
|
||||
|
||||
volatile uint8_t USB_SelectedEndpoint = ENDPOINT_CONTROLEP;
|
||||
volatile uint32_t USB_SelectedEndpoint = ENDPOINT_CONTROLEP;
|
||||
volatile uint8_t* USB_EndpointFIFOPos[ENDPOINT_TOTAL_ENDPOINTS];
|
||||
|
||||
bool Endpoint_ConfigureEndpoint_Prv(const uint8_t Number,
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
const uint32_t UECFGXData);
|
||||
|
||||
/* External Variables: */
|
||||
extern volatile uint8_t USB_SelectedEndpoint;
|
||||
extern volatile uint32_t USB_SelectedEndpoint;
|
||||
extern volatile uint8_t* USB_EndpointFIFOPos[];
|
||||
#endif
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
uint8_t USB_ControlPipeSize = PIPE_CONTROLPIPE_DEFAULT_SIZE;
|
||||
|
||||
volatile uint8_t USB_SelectedPipe = PIPE_CONTROLPIPE;
|
||||
volatile uint32_t USB_SelectedPipe = PIPE_CONTROLPIPE;
|
||||
volatile uint8_t* USB_PipeFIFOPos[PIPE_TOTAL_PIPES];
|
||||
|
||||
bool Pipe_ConfigurePipe(const uint8_t Number,
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
#define PIPE_HSB_ADDRESS_SPACE_SIZE (64 * 1024UL)
|
||||
|
||||
/* External Variables: */
|
||||
extern volatile uint8_t USB_SelectedPipe;
|
||||
extern volatile uint32_t USB_SelectedPipe;
|
||||
extern volatile uint8_t* USB_PipeFIFOPos[];
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user