Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB Host Controller (UHC) - Prerequisites

Common prerequisites for all USB hosts.

This module is based on USB host stack full interrupt driven and supporting Sleep manager sleepmgr. For AVR and SAM3/4 devices the clk_group clock services is supported. For SAMD21 devices the SAM System Clock Management (SYSTEM CLOCK) Driver clock driver is supported.

The following procedure must be executed to setup the project correctly:

The usage of Sleep manager sleepmgr service is optional, but recommended to reduce power consumption:

conf_clock.h examples with USB support.

For AVR and SAM3/4 devices, add to the initialization code:

sysclk_init();
sleepmgr_init(); // Optional

For SAMD21 devices, add to the initialization code:

Add to the main IDLE loop:

sleepmgr_enter_sleep(); // Optional