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 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.
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 }