diff options
| author | hathach <[email protected]> | 2023-05-11 22:18:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-05-16 11:09:22 +0700 |
| commit | 1c4f22a54cf60e6221995f9b64e2e765fd0a5bfe (patch) | |
| tree | 56505cbd61313df6bc09382e31c3d7aacb5aef72 /src/host | |
| parent | 206d63e038744b228cfa6051d701cab50b520fe6 (diff) | |
EHCI: fix xfer failed with disconnected device as stalled
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if
not defined
- change QHD_MAX for EHCI, should be user configurable and more
optimized in the future
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/hcd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index 623c12a12..f4e76f9ef 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -39,8 +39,10 @@ // Configuration //--------------------------------------------------------------------+ +// Max number of endpoints per device +// TODO optimize memory usage #ifndef CFG_TUH_ENDPOINT_MAX - #define CFG_TUH_ENDPOINT_MAX (CFG_TUH_HUB + CFG_TUH_HID*2 + CFG_TUH_MSC*2 + CFG_TUH_CDC*3) + #define CFG_TUH_ENDPOINT_MAX 16 // #ifdef TUP_HCD_ENDPOINT_MAX // #define CFG_TUH_ENDPPOINT_MAX TUP_HCD_ENDPOINT_MAX // #else |
