Skip to content

Commit 3f23b61

Browse files
committed
Up the limit of HID devices from 4 to 16
This allows the use more HID devices. For example the use of a logitech unify dongle for a wireless keyboard/mouse combo and then a wired keyboard with a mouse attached to the keyboard's hub. Plus whatever composite devices are part of the keyboard and/or mouse.
1 parent 4585cfd commit 3f23b61

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed

include/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#define CFG_TUH_HUB 7
8080
// max device support (excluding hub device)
8181
#define CFG_TUH_DEVICE_MAX 14 // hub typically has 4 ports
82-
#define CFG_TUH_HID 4 // typical keyboard + mouse device can have 3-4 HID interfaces
82+
#define CFG_TUH_HID 16 // typical keyboard + mouse device can have 3-4 HID interfaces
8383
#define CFG_TUH_MSC 0
8484

8585
#define CFG_TUH_HID_EPIN_BUFSIZE 64

lib/libpico.a

-12.3 KB
Binary file not shown.

lib/libpicow-ipv6-btc-ble.a

-34.7 KB
Binary file not shown.

lib/libpicow-ipv6-nobtc-noble.a

-22.4 KB
Binary file not shown.

lib/libpicow-noipv6-btc-ble.a

-33.2 KB
Binary file not shown.

lib/libpicow-noipv6-nobtc-noble.a

-20.9 KB
Binary file not shown.

tools/libpico/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#define CFG_TUH_HUB 7
8080
// max device support (excluding hub device)
8181
#define CFG_TUH_DEVICE_MAX 14 // hub typically has 4 ports
82-
#define CFG_TUH_HID 4 // typical keyboard + mouse device can have 3-4 HID interfaces
82+
#define CFG_TUH_HID 16 // typical keyboard + mouse device can have 3-4 HID interfaces
8383
#define CFG_TUH_MSC 0
8484

8585
#define CFG_TUH_HID_EPIN_BUFSIZE 64

0 commit comments

Comments
 (0)