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 658 of file usb_task.c.

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


Generated on Thu Dec 17 20:00:27 2009 for AVR32 - USB Enumeration Example by  doxygen 1.5.5