diff options
| author | hathach <[email protected]> | 2019-11-28 11:46:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-28 11:46:36 +0700 |
| commit | 6bc245cb36cd18543916516a91def1f1e3a04e66 (patch) | |
| tree | 3ab7311768fa5ed86e98b1e2a6d7a0312adf656c /src/device/dcd.h | |
| parent | 40b454cf28e5a86dac8d261f1276ace108446ffe (diff) | |
add dcd_edpt0_status_complete() which is useful for several mcu port
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index dca289e78..8ae232fa6 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -110,6 +110,10 @@ void dcd_remote_wakeup(uint8_t rhport); // Endpoint API
//--------------------------------------------------------------------+
+// Invoked when a control transfer's status stage is complete.
+// May help DCD to prepare for next control transfer, this API is optional.
+void dcd_edpt0_status_complete(uint8_t rhport, tusb_control_request_t const * request) TU_ATTR_WEAK;
+
// Configure endpoint's registers according to descriptor
bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);
|
