summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2020-04-13 09:25:16 -0400
committerNathan Conrad <[email protected]>2020-04-13 09:51:46 -0400
commitf8e7487355c1d48517211a2316fbbc8566a1532d (patch)
treea5617b08460972c7ad6055c95548ff0b2f77a6ba /docs
parent0eeaccaf46c28444cc0830895559652cf5638c60 (diff)
edpt_close: Updated based on feedback.
Diffstat (limited to 'docs')
-rw-r--r--docs/porting.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/porting.md b/docs/porting.md
index de300c080..9561dfaf7 100644
--- a/docs/porting.md
+++ b/docs/porting.md
@@ -121,10 +121,11 @@ Also make sure to enable endpoint specific interrupts.
##### dcd_edpt_close
-Close an endpoint. After calling this, the device should not respond to any packets directed towards this endpoint. Implementation is optional, and is to be called from USBD in a non-interrupt context.
-This function is used for implementing alternate settings.
+Close an endpoint. his function is used for implementing alternate settings.
-When called, this function need to abort any transfers in progress through this endpoint, before returning.
+After calling this, the device should not respond to any packets directed towards this endpoint. When called, this function must abort any transfers in progress through this endpoint, before returning.
+
+Implementation is optional. Must be called from the USB task. Interrupts could be disabled or enabled during the call.
##### dcd_edpt_xfer