add dcd_edpt0_status_complete() which is useful for several mcu port

This commit is contained in:
hathach
2019-11-28 11:46:36 +07:00
parent 40b454cf28
commit 6bc245cb36
4 changed files with 15 additions and 5 deletions

View File

@@ -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);