...
To enable the usb device function the ucos_usbd library should be added to the project as seen in figure .
The uC/OS BSP can configure a USB port automatically as a device. To do so select it in the ucos configuration panel specifying that the port should be used a device instead of a host.