AT90USBxxx USB Host Mouse Sample applicaton

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 source code illustrates how to implement a simple USB host application with HID mouse support.

To use the application, the SK525 should be configured to be self powered (see STK525 hardware manual).

Note:
The application can also be used with the USBKey in host mode (powered with an external battery)

About the sample application

The application use host operating mode of the STK525. In host mode, the USB can be connected (with a mini A connector attached to the mini AB STK525 receptacle) to a standard USB mouse (or another STK525 running device mouse application). In this mode the AT90USBxxx controller will initialize and enumerate a device HID mouse application.
appli_host.gif

About the source code

This source code is usable with the following compilers:

Support for other compilers may required modifications or attention for:

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 application is based on four different tasks:


Generated on Mon Sep 14 14:14:57 2009 for ATMEL by  doxygen 1.5.3