diff options
| author | hathach <[email protected]> | 2018-12-10 05:07:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-10 05:07:22 +0700 |
| commit | 6a6e7d0ecb6690c5bc833f6d543c5303b6b52155 (patch) | |
| tree | e7a30706b2d8db7e4de714e70977fd14fd50a4c1 /src/host/usbh_hcd.h | |
| parent | 05913a73501c8e2ea1a88299f6b900f92307aaa7 (diff) | |
refactor usbh class driver
Diffstat (limited to 'src/host/usbh_hcd.h')
| -rw-r--r-- | src/host/usbh_hcd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/usbh_hcd.h b/src/host/usbh_hcd.h index 7ccbe3a25..398c61112 100644 --- a/src/host/usbh_hcd.h +++ b/src/host/usbh_hcd.h @@ -86,6 +86,9 @@ typedef struct { osal_mutex_def_t mutex_def; osal_mutex_t mutex_hdl; // used to exclusively occupy control pipe } control; + + int8_t itf2drv[16]; // map interface number to driver (negative is invalid) + int8_t ep2drv[8][2]; // map endpoint to driver ( negative is invalid ) } usbh_device_t; extern usbh_device_t _usbh_devices[CFG_TUSB_HOST_DEVICE_MAX+1]; // including zero-address |
