diff options
| author | hathach <[email protected]> | 2019-05-01 19:29:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-01 19:29:56 +0700 |
| commit | c006f3dbce7820bbdc2c1736ba0cb4a4e629f0b6 (patch) | |
| tree | 4f17a56b9e93a95bbad997f7ac59199c4a9ecbfd /src/device/usbd_pvt.h | |
| parent | 90fdae94f8f0f86af5e7be3b14561baae1abb2fd (diff) | |
adding optional ep out for hid
refactor usbd_open_edpt_pair
Diffstat (limited to 'src/device/usbd_pvt.h')
| -rw-r--r-- | src/device/usbd_pvt.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index 8518ee209..fb3672359 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -53,9 +53,8 @@ bool usbd_edpt_stalled(uint8_t rhport, uint8_t ep_addr); /*------------------------------------------------------------------*/ /* Helper *------------------------------------------------------------------*/ -// helper to parse an pair of In and Out endpoint descriptors. They must be consecutive -bool usbd_open_edpt_pair(uint8_t rhport, tusb_desc_endpoint_t const* p_desc_ep, uint8_t xfer_type, uint8_t* ep_out, uint8_t* ep_in); +bool usbd_open_edpt_pair(uint8_t rhport, uint8_t const* p_desc, uint8_t ep_count, uint8_t xfer_type, uint8_t* ep_out, uint8_t* ep_in); void usbd_defer_func( osal_task_func_t func, void* param, bool in_isr ); |
