Go Down

Topic: Due USB Host Library issue (Read 183 times) previous topic - next topic


I've been stumped with this one for a while now so if anyone can help me it would be awesome.
The Due has the usb host function, and it works well for us, but the issue we're having is we want to have serial communication with other devices at the same time but the USB host inconveniently polls our connected device for 5 seconds and waits for an input.

I've noticed in the USB.h library there are multiple lines that refer to USB_NAK_LIMIT and they either call MAX_POWER or something else, but I want to change it to NO_WAIT so that I can check for data from the usb, and if there is nothing simply buzz through the rest of my code without delay. I've never modified libraries before since I'm very new at this, so could someone walk me through what's going on here and how to fix it? A quick reply would be great since this problem needs corrected by tomorrow.

Thanks in advance for the help,

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131