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:
parent
d08116b02f
commit
852b5e612d
18 changed files with 195 additions and 183 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue