USB device operating mode configuration
[USB application configuration]


Modules

 USB device custom actions

Defines

#define EP_TEMP_IN   1
#define EP_TEMP_OUT   2
#define NB_ENDPOINTS   3

Functions

void usb_sof_action (void)
 usb_sof_action
void usb_suspend_action (void)


Define Documentation

#define EP_TEMP_IN   1

Definition at line 208 of file conf_usb.h.

Referenced by device_template_task(), and usb_user_endpoint_init().

#define EP_TEMP_OUT   2

Definition at line 209 of file conf_usb.h.

Referenced by device_template_task(), and usb_user_endpoint_init().

#define NB_ENDPOINTS   3

Definition at line 207 of file conf_usb.h.


Function Documentation

void usb_sof_action ( void   ) 

usb_sof_action

This function increments the sof_cnt counter each time the USB Start-of-Frame interrupt subroutine is executed (1 ms). Useful to manage time delays

Definition at line 202 of file device_template_task.c.

References sof_cnt.

00203 {
00204   sof_cnt++;
00205 }

void usb_suspend_action ( void   ) 

Definition at line 657 of file usb_task.c.

00658 {
00659    volatile avr32_pm_t *pm = &AVR32_PM;
00660    pm->AWEN.usb_waken = 1;
00661    SLEEP(AVR32_PM_SMODE_STATIC);
00662    pm->AWEN.usb_waken = 0;
00663 }


Generated on Fri Feb 19 02:27:53 2010 for AVR32 - USB Enumeration Example by  doxygen 1.5.5