mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
refactor(hcd_dwc): Added mps request from hcd_dwc
This commit is contained in:
@@ -1798,6 +1798,16 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int hcd_pipe_get_mps(hcd_pipe_handle_t pipe_hdl)
|
||||
{
|
||||
pipe_t *pipe = (pipe_t *)pipe_hdl;
|
||||
int mps;
|
||||
HCD_ENTER_CRITICAL();
|
||||
mps = pipe->ep_char.mps;
|
||||
HCD_EXIT_CRITICAL();
|
||||
return mps;
|
||||
}
|
||||
|
||||
esp_err_t hcd_pipe_free(hcd_pipe_handle_t pipe_hdl)
|
||||
{
|
||||
pipe_t *pipe = (pipe_t *)pipe_hdl;
|
||||
|
||||
Reference in New Issue
Block a user