diff options
| author | hathach <[email protected]> | 2021-05-31 16:05:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-31 16:05:55 +0700 |
| commit | 04797bc5a5e90304e5882ebc29c4c0f7d81ae012 (patch) | |
| tree | c7592763a90095b63fb846ed4b2b6a31c06d5af8 /src/host | |
| parent | 4b2f32b7786674a1a5ccf7347a2e67e68665e1c3 (diff) | |
clean up
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh_control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/usbh_control.c b/src/host/usbh_control.c index 974d10662..4dbf8592a 100644 --- a/src/host/usbh_control.c +++ b/src/host/usbh_control.c @@ -108,7 +108,7 @@ bool usbh_control_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result_t resu _ctrl_xfer.stage = STAGE_DATA; if (request->wLength) { - // Note: initial data toggle is always 1 + // DATA stage: initial data toggle is always 1 hcd_edpt_xfer(rhport, dev_addr, tu_edpt_addr(0, request->bmRequestType_bit.direction), _ctrl_xfer.buffer, request->wLength); return true; } @@ -123,7 +123,7 @@ bool usbh_control_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result_t resu TU_LOG2_MEM(_ctrl_xfer.buffer, request->wLength, 2); } - // data toggle is always 1 + // ACK stage: toggle is always 1 hcd_edpt_xfer(rhport, dev_addr, tu_edpt_addr(0, 1-request->bmRequestType_bit.direction), NULL, 0); break; |
