merge EHCI_MAX_QHD/QTD and OHCI_MAX_QHD/QTD to HCD_MAX_ENDPOINT/XFER and scale with number of enabled classes.

default config to support up to 5 device (hub + 4 others)
This commit is contained in:
hathach
2014-04-13 15:39:57 +07:00
parent 45e76ee34f
commit 940d7fb7f6
7 changed files with 43 additions and 36 deletions

View File

@@ -52,7 +52,7 @@
//--------------------------------------------------------------------+
// HOST CONFIGURATION
//--------------------------------------------------------------------+
#define TUSB_CFG_HOST_DEVICE_MAX 3 // TODO be a part of HUB config
#define TUSB_CFG_HOST_DEVICE_MAX 5 // TODO be a part of HUB config
//------------- CLASS -------------//
#define TUSB_CFG_HOST_HUB 1