I would have to say yes. My code has origins in the first versions of the SDK and TinyUSB has made many changes over that time. so it seems that I've been lucky that the defaults worked as long as they have.Looking in my header file I see the same as DarkElven, that MAX is defined as 1. Is it supposed to be like this?
Without a hub it's would not be possible to get more than one device at a time. sure you can have a Keyboard Mouse dongle that has both instances that seems to be supported but you couldn't have separate devices.My tusb_config.h has this in it - not sure if I inherited it from somewhere or added it myself:Ie. if you don't support hubs then no point having more than one, but if you do then you need more.Code:
// max device support (excluding hub device)#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1) // hub typically has 4 ports
I've gotten most of my USB devices working with support for multiple mice and keyboards in the works. What I didn't like was the USB stack failed in the background and there didn't seem to be a way to recover from that or have the application be aware of it.
Statistics: Posted by DarkElvenAngel — Sat Nov 16, 2024 7:33 pm