3.2.3 Configuring the Library

The following configuration parameters must be defined while using the USB Host Layer. The configuration macros that implement these parameters must be located in the system_config.h file in the application project and a compiler include path (to point to the folder that contains this file) should be specified.

Macros

Name Description
USB_HOST_CONTROLLERS_NUMBER Defines the number of USB Host Controllers that this Host Layer must manage.
USB_HOST_DEVICE_INTERFACES_NUMBER Defines the maximum number of interface that the attached device can contain in order for the USB Host Layer to process the device.
USB_HOST_DEVICES_NUMBER Defines the maximum number of devices to support.
USB_HOST_HUB_SUPPORT_ENABLE Defines if this USB Host application must support a Hub.
USB_HOST_HUB_TIER_LEVEL Defines the maximum tier of connected hubs to be supported.
USB_HOST_PIPES_NUMBER Defines the maximum number of pipes that the application will need.
USB_HOST_TRANSFERS_NUMBER Defines the maximum number of transfers that host layer should handle.
Configuration on MCC This section describes the symbols available in the MCC that can be configured.