summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-21 17:05:13 +0700
committerGitHub <[email protected]>2018-11-21 17:05:13 +0700
commit2b84d7bb25a44ff1ff0ca1cc6d7672290110bd7b (patch)
tree01215f73adf306790355968519e513b2cb33b4a6 /src/device/dcd.h
parentaa71b8fd874901347dedf4046a74d686907cf147 (diff)
parent1d6fc49fa974903ca14af6454671ea816fb2d6dd (diff)
Merge pull request #11 from hathach/devlocal
fix samd51 & samd21 dcd setup packet prepare
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index bd0ea852e..f07bda2d3 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -124,10 +124,14 @@ void dcd_event_xfer_complete (uint8_t rhport, uint8_t ep_addr, uint32_t xferred_
/*------------------------------------------------------------------*/
/* Endpoint API
- * Note:
- * - Address of control endpoint OUT is 0x00, In is 0x80
- * - When stalling control endpoint both control OUT and IN must be stalled
- * (according to USB spec, stalled control is only recovered with setup token)
+ * - open : Configure endpoint's registers
+ * - xfer : Submit a transfer. When complete dcd_event_xfer_complete
+ * must be called to notify the stack
+ * - busy : Check if endpoint transferring is complete (TODO remove)
+ * - stall : stall ep. When control endpoint (addr = 0) is stalled,
+ * both direction (IN & OUT) of control ep must be stalled.
+ * - clear_stall : clear stall
+ * - stalled : check if stalled ( TODO remove )
*------------------------------------------------------------------*/
bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);
bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);