Skip to content

Commit a97f391

Browse files
committed
fine tune CFG_TUH_HID value
1 parent d22fc55 commit a97f391

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/dual/host_hid_to_device_cdc/src/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
// max device support (excluding hub device)
133133
#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1) // hub typically has 4 ports
134134

135-
#define CFG_TUH_HID (4*CFG_TUH_DEVICE_MAX)
135+
#define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX)
136136
#define CFG_TUH_HID_EPIN_BUFSIZE 64
137137
#define CFG_TUH_HID_EPOUT_BUFSIZE 64
138138

examples/host/cdc_msc_hid/src/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
#define CFG_TUH_HUB 1 // number of supported hubs
9999
#define CFG_TUH_CDC 1
100-
#define CFG_TUH_HID (4*CFG_TUH_DEVICE_MAX) // typical keyboard + mouse device can have 3-4 HID interfaces
100+
#define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX) // typical keyboard + mouse device can have 3-4 HID interfaces
101101
#define CFG_TUH_MSC 1
102102
#define CFG_TUH_VENDOR 0
103103

examples/host/hid_controller/src/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
#define CFG_TUH_HUB 0
9999
#define CFG_TUH_CDC 0
100-
#define CFG_TUH_HID (4*CFG_TUH_DEVICE_MAX) // typical keyboard + mouse device can have 3-4 HID interfaces
100+
#define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX) // typical keyboard + mouse device can have 3-4 HID interfaces
101101
#define CFG_TUH_MSC 0
102102
#define CFG_TUH_VENDOR 0
103103

0 commit comments

Comments
 (0)