Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I have an application using mBed LPC1768 which uses USB HID. Actually I have two mBeds connected to 1 PC. Both devices use the same Vid (Vendor ID), but use different Pid (Product ID).
My problem is I need the ability to check an input on the mBed to determine which Pid to use with the USB constructor.
For example, pseudo code:
But the USB constructor is called before Main(). Is there any way to check an input before calling the USB constructor?
Thanks,
Mike