stmfx07: usb: Clean up FIFO read/write macro usage.

Use REBASE(OTG_FIFO(endpoint)) to access the FIFO.
For the receive FIFO do not use the endpoint. There
is only one receive FIFO so giving the endpoint is
a no-op.
Get rid of REBASE_FIFO macro.
This commit is contained in:
Jochen Hoenicke
2016-07-14 12:34:28 +02:00
committed by Karl Palsson
parent 0c1ff686ad
commit 8b99b56c59
2 changed files with 10 additions and 8 deletions

View File

@@ -262,7 +262,7 @@ void _usbd_control_out(usbd_device *usbd_dev, uint8_t ea)
*/
if (usb_control_request_dispatch(usbd_dev,
&(usbd_dev->control_state.req))) {
/* Got to status stage on success. */
/* Go to status stage on success. */
usbd_ep_write_packet(usbd_dev, 0, NULL, 0);
usbd_dev->control_state.state = STATUS_IN;
} else {