summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-20 11:06:16 +0700
committerGitHub <[email protected]>2018-11-20 11:06:16 +0700
commitaa71b8fd874901347dedf4046a74d686907cf147 (patch)
treebcc958c04628507c72879ead57766d0bc732d588 /src/device/dcd.h
parent5757918df4a3cc4561775db61d9f720df8b23c31 (diff)
parent5e65886fdd2bc5bac4ee9335fff1726f9382c109 (diff)
Merge pull request #10 from hathach/devlocal
merge for local develop
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index ff836f405..bd0ea852e 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -124,6 +124,10 @@ 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)
*------------------------------------------------------------------*/
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);