forked from mfulz_github/qmk_firmware
Prevent written but unused variable warnings on GCC 4.6 with dummy reads.
This commit is contained in:
parent
a4d67bb6ff
commit
68e777e16b
|
@ -634,6 +634,8 @@
|
|||
uint8_t Dummy;
|
||||
|
||||
Dummy = UEDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads two bytes from the currently selected endpoint's bank in little endian format, for OUT
|
||||
|
@ -719,6 +721,8 @@
|
|||
|
||||
Dummy = UEDATX;
|
||||
Dummy = UEDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads four bytes from the currently selected endpoint's bank in little endian format, for OUT
|
||||
|
@ -814,6 +818,8 @@
|
|||
Dummy = UEDATX;
|
||||
Dummy = UEDATX;
|
||||
Dummy = UEDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/* External Variables: */
|
||||
|
|
|
@ -613,6 +613,8 @@
|
|||
uint8_t Dummy;
|
||||
|
||||
Dummy = UPDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads two bytes from the currently selected pipe's bank in little endian format, for OUT
|
||||
|
@ -698,6 +700,8 @@
|
|||
|
||||
Dummy = UPDATX;
|
||||
Dummy = UPDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads four bytes from the currently selected pipe's bank in little endian format, for OUT
|
||||
|
@ -793,6 +797,8 @@
|
|||
Dummy = UPDATX;
|
||||
Dummy = UPDATX;
|
||||
Dummy = UPDATX;
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/* External Variables: */
|
||||
|
|
|
@ -654,6 +654,8 @@
|
|||
uint8_t Dummy;
|
||||
|
||||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads two bytes from the currently selected endpoint's bank in little endian format, for OUT
|
||||
|
@ -727,6 +729,8 @@
|
|||
|
||||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads four bytes from the currently selected endpoint's bank in little endian format, for OUT
|
||||
|
@ -810,6 +814,8 @@
|
|||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
Dummy = *(USB_EndpointFIFOPos[USB_SelectedEndpoint]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/* External Variables: */
|
||||
|
|
|
@ -648,6 +648,8 @@
|
|||
uint8_t Dummy;
|
||||
|
||||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads two bytes from the currently selected pipe's bank in little endian format, for OUT
|
||||
|
@ -721,6 +723,8 @@
|
|||
|
||||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/** Reads four bytes from the currently selected pipe's bank in little endian format, for OUT
|
||||
|
@ -804,6 +808,8 @@
|
|||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
Dummy = *(USB_PipeFIFOPos[USB_SelectedPipe]++);
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
/* External Variables: */
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
|
||||
Endpoint_SelectedEndpointHandle->CTRL = 0;
|
||||
Endpoint_SelectedEndpointHandle->STATUS = (USB_EP_BUSNACK0_bm | USB_EP_BUSNACK1_bm);
|
||||
Endpoint_SelectedEndpointHandle->CTRL = (EPTypeMask | Banks | Endpoint_BytesToEPSizeMask(Size));
|
||||
Endpoint_SelectedEndpointHandle->CTRL = (EPTypeMask | Banks | Endpoint_BytesToEPSizeMask(Size));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue