/
USB Host

USB Host

Introduction

The uC/OS BSP can use USB device as peripherals for various functions using the uC/USB-Host module.

Configuration

To enable the usb host function the ucos_usbh library should be added to the project as seen in Figure - USBH library configuration.

Figure - USBH library configuration

The uC/OS BSP can configure a USB port automatically as a host. To do so select it in the ucos configuration panel specifying that the port should be used a host instead of a device.


Figure - USBH interface configuration

Initialization

Since the USB Host module can dynamically enumerate devices at runtime, the interface is not started before the user application has a chance to begin. Please look at the uC/USB-Host user manual and the provided demonstration template for details of starting a host interface.