summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-08-23 19:56:53 +0700
committerhathach <[email protected]>2021-08-23 19:56:53 +0700
commit3309425211639121ce72784405106ab22c4a426e (patch)
treeef8374dfb712904cae531bd2e170168acdc046c3 /examples
parent75cd593b609340b3101d0b002ac765c5595fa2eb (diff)
sepearate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB
separate dev0 from _usbh_devices pool to save sram
Diffstat (limited to 'examples')
-rw-r--r--examples/host/cdc_msc_hid/src/tusb_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h
index e2eb566bd..bc6c68e5b 100644
--- a/examples/host/cdc_msc_hid/src/tusb_config.h
+++ b/examples/host/cdc_msc_hid/src/tusb_config.h
@@ -80,7 +80,8 @@
#define CFG_TUH_MSC 1
#define CFG_TUH_VENDOR 0
-#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 5 : 1) // normal hub has 4 ports
+// max device support (excluding hub device)
+#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1) // hub typically has 4 ports
//------------- HID -------------//
#define CFG_TUH_HID_EPIN_BUFSIZE 64