Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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 . 

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.

  

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().

  • No labels