summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-04-26 15:23:11 +0700
committerGitHub <[email protected]>2020-04-26 15:23:11 +0700
commitd54343e4a6bc84549caf69ecd26a98852127ef3f (patch)
tree1c4fcfb14c715023051d800a170fe6e82606b463 /src/device/usbd_control.c
parentf1ecda392ffcc0c114269c3b6c318a2d0a50e2f5 (diff)
parent9c8517a8d2603a0ce3a16c8cc144749d2ba9fece (diff)
Merge pull request #379 from hathach/add-usbd-edpt-open
add usbd edpt open
Diffstat (limited to 'src/device/usbd_control.c')
-rw-r--r--src/device/usbd_control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index c61606f18..b0ae85e3b 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -63,7 +63,7 @@ static inline bool _status_stage_xact(uint8_t rhport, tusb_control_request_t con
// Opposite to endpoint in Data Phase
uint8_t const ep_addr = request->bmRequestType_bit.direction ? EDPT_CTRL_OUT : EDPT_CTRL_IN;
- TU_LOG2(" XFER Endpoint: 0x%02X, Bytes: %d\r\n", ep_addr, 0);
+ TU_LOG2(" Queue EP %02X with zlp Status\r\n", ep_addr);
// status direction is reversed to one in the setup packet
// Note: Status must always be DATA1
@@ -96,7 +96,7 @@ static bool _data_stage_xact(uint8_t rhport)
if ( xact_len ) memcpy(_usbd_ctrl_buf, _ctrl_xfer.buffer, xact_len);
}
- TU_LOG2(" XACT Control: 0x%02X, Bytes: %d\r\n", ep_addr, xact_len);
+ TU_LOG2(" Queue EP %02X with %u bytes\r\n", ep_addr, xact_len);
return dcd_edpt_xfer(rhport, ep_addr, xact_len ? _usbd_ctrl_buf : NULL, xact_len);
}
@@ -118,7 +118,7 @@ bool tud_control_xfer(uint8_t rhport, tusb_control_request_t const * request, vo
TU_ASSERT(buffer);
}
- TU_LOG2(" XFER Endpoint: 0x%02X, Bytes: %d\r\n", request->bmRequestType_bit.direction ? EDPT_CTRL_IN : EDPT_CTRL_OUT, _ctrl_xfer.data_len);
+// TU_LOG2(" Control total data length is %u bytes\r\n", _ctrl_xfer.data_len);
// Data stage
TU_ASSERT( _data_stage_xact(rhport) );