AT90USB162 USB device HID generic demonstration

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 USB application with the AT90USBxxx controller using the generic HID class implementation.

A pc side applications allow to communicate with the embedded firmware (see USB HID Generic PC demos).

The sample code is delivered for STK526.

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 sample usb application is based on two different tasks:

arch_full.gif

Generated on Fri Sep 11 14:27:17 2009 for ATMEL by  doxygen 1.5.3