Commit 68e777e1 authored by Dean Camera's avatar Dean Camera

Prevent written but unused variable warnings on GCC 4.6 with dummy reads.

parent a4d67bb6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment