Hi
Our system has a USB device port and SD card slot, the SD card is optional, so there are 2 cases:
1. Connect the USB to PC, it needs to be a HID device. 2. Insert SD card, then connect USB to PC, it needs to be a HID+MSC composite device.
I am using RL_USB, this means I need 2 usb configuration: one for single HID device, the other for composite HID+MSC device, firmware needs to detect if sd card is inserted to decide which configuration to enable. However, it seems I can only config the usb class in compile time, and not able to change it in runtime??
Am I right? What's the general solution for this requirement? I am using RL_USB library.
Thanks.