mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
minor adjust TUSB_CFG_HOST_DEVICE_MAX and TUSB_CFG_HOST_HUB
This commit is contained in:
parent
4091ddc4fc
commit
8dff4d454b
@ -52,7 +52,6 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// HOST CONFIGURATION
|
// HOST CONFIGURATION
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#define TUSB_CFG_HOST_DEVICE_MAX 5 // TODO be a part of HUB config
|
|
||||||
|
|
||||||
//------------- CLASS -------------//
|
//------------- CLASS -------------//
|
||||||
#define TUSB_CFG_HOST_HUB 1
|
#define TUSB_CFG_HOST_HUB 1
|
||||||
@ -62,6 +61,8 @@
|
|||||||
#define TUSB_CFG_HOST_MSC 1
|
#define TUSB_CFG_HOST_MSC 1
|
||||||
#define TUSB_CFG_HOST_CDC 1
|
#define TUSB_CFG_HOST_CDC 1
|
||||||
|
|
||||||
|
#define TUSB_CFG_HOST_DEVICE_MAX (TUSB_CFG_HOST_HUB ? 5 : 1) // normal hub has 4 ports
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// COMMON CONFIGURATION
|
// COMMON CONFIGURATION
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user