/
USB Device
USB Device
Introduction
The uC/OS BSP can easily turn a Zynq system into a USB device using the uC/USB-Device module.
Configuration
To enable the usb device function the ucos_usbd library should be added to the project as seen in figure Figure - USBD library configuration.
Figure - USBD library configuration
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.
Figure - USBD interface configuration
Initialization
Since the function of a USB must be defined before enumeration the uC/OS BSP startup code will only configure and interface but won't start it. Once fully configured a USB interface can be started by calling USBD_DevStart().
Related content
USB Host
More like this
Porting the Core Layer to an RTOS
Porting the Core Layer to an RTOS
More like this
Running the Sample Application
Running the Sample Application
More like this
Installing the USB Device Stack
Installing the USB Device Stack
More like this
USBD_OS_Init
USBD_OS_Init
More like this
USBD_BSP_Init
USBD_BSP_Init
More like this