diff options
| author | hathach <[email protected]> | 2014-04-18 14:50:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-18 14:50:44 +0700 |
| commit | 8dff4d454b81d61e94c4d92bbc87ef5dd2d909de (patch) | |
| tree | 101206a01c73f52b4fd06ba4a895a2d9f0d84978 | |
| parent | 4091ddc4fc31da1b0c33538145e59df4ea9b6d51 (diff) | |
minor adjust TUSB_CFG_HOST_DEVICE_MAX and TUSB_CFG_HOST_HUB
| -rw-r--r-- | demos/host/src/tusb_config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h index e8e58b7ce..ab5a9fe4c 100644 --- a/demos/host/src/tusb_config.h +++ b/demos/host/src/tusb_config.h @@ -52,7 +52,6 @@ //--------------------------------------------------------------------+
// HOST CONFIGURATION
//--------------------------------------------------------------------+
-#define TUSB_CFG_HOST_DEVICE_MAX 5 // TODO be a part of HUB config
//------------- CLASS -------------//
#define TUSB_CFG_HOST_HUB 1
@@ -62,6 +61,8 @@ #define TUSB_CFG_HOST_MSC 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
//--------------------------------------------------------------------+
|
