The USB_Device function handles the USB device events sent by the host (such as the suspend event). The USB_Device function only handles the device events that you enable in usbcfg.h or using the Configuration Wizard. See Configuration Parameters on page 1-34 for a list of USB device events and how to enable them. The USB_Device function is part of the USB Core Driver layer of the RL-USB Software Stack. You can modify this function to provide your own special handling code for the USB device events. USB_Device is a continuously running task and must not be invoked from the application. |