summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-03-17 15:27:56 +0700
committerGitHub <[email protected]>2023-03-17 15:27:56 +0700
commit16daad81643279ffc951ba11a531877dfee8c872 (patch)
tree8b906cc9e51b0ad614b6982bd0edc9789218ca5f /examples/host/bare_api/src
parent96d064e923dbc1c86a247ada0395923667cca468 (diff)
parent511f5be8b34f0a28b20773f2d39bda575f07065f (diff)
Merge pull request #1960 from hathach/fix-host-enumerate-mul-device
Fix host enumerate multiple devices from multiple host controllers
Diffstat (limited to 'examples/host/bare_api/src')
-rw-r--r--examples/host/bare_api/src/tusb_config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/host/bare_api/src/tusb_config.h b/examples/host/bare_api/src/tusb_config.h
index 701aa6d90..64be41a4e 100644
--- a/examples/host/bare_api/src/tusb_config.h
+++ b/examples/host/bare_api/src/tusb_config.h
@@ -1,4 +1,4 @@
-/*
+/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ha Thach (tinyusb.org)
@@ -100,7 +100,7 @@
// max device support (excluding hub device)
// 1 hub typically has 4 ports
-#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1)
+#define CFG_TUH_DEVICE_MAX (3*CFG_TUH_HUB + 1)
// Max endpoint per device
#define CFG_TUH_ENDPOINT_MAX 8