Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4919

SDK • Re: TinyUSB Only mounts one device [SOLVED]

$
0
0
Looking in my header file I see the same as DarkElven, that MAX is defined as 1. Is it supposed to be like this?
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.
My tusb_config.h has this in it - not sure if I inherited it from somewhere or added it myself:

Code:

// max device support (excluding hub device)#define CFG_TUH_DEVICE_MAX          (CFG_TUH_HUB ? 4 : 1) // hub typically has 4 ports
Ie. if you don't support hubs then no point having more than one, but if you do then you need more.
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.

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



Viewing all articles
Browse latest Browse all 4919

Trending Articles