AT90USBxxx Dual role demonstration with file system

License

Use of this program is subject to Atmel's End User License Agreement.

Please read file lic_page for copyright notice.

Description

This embedded application code illustrates how to implement a dual role application with the AT90USBxxx controller.

As the AT90USBxxx implements a device/host usb controller, the embedded application can operates in one of the following usb operating modes:

About the source code

This source code is usable with the following compilers:

Support for other compilers may required modifications or attention for:

About the sample application

By default the demonstration is preconfigured for dual role USB application. It means that the code generated allows to operate as a device or a host depending on the USB ID pin:

Using the USB device mode

Connect the STK525 to a PC host system with a miniB (STK525 side) to plugA (PC host) cable

Using the USB host mode

Connected in host mode (miniA plug inserted), the behavior of the application depends on the device type connected:

Architecture

As illustrated in the figure bellow, the application entry point is located is the main.c file. The main function first performs the initialization of a scheduler module and then runs it in an infinite loop. The scheduler is a simple infinite loop calling all its tasks defined in the conf_scheduler.h file. No real time schedule is performed, when a task ends, the scheduler calls the next task defined in the configuration file (conf_scheduler.h).

The sample dual role application is based on several different tasks:

arch_full.gif

Generated on Wed Sep 23 09:49:34 2009 for ATMEL by  doxygen 1.5.3