Modules | |
USB device custom actions | |
Macros | |
#define | EP_AUDIO_IN 6 |
#define | EP_AUDIO_OUT 5 |
#define | EP_KBD_IN 1 |
#define | NB_ENDPOINTS 4 |
Functions | |
void | usb_sof_action (void) |
usb_sof_action More... | |
void | usb_suspend_action (void) |
#define EP_AUDIO_IN 6 |
Referenced by adc_sample_sent_cb(), device_audio_task(), and usb_user_endpoint_init().
#define EP_AUDIO_OUT 5 |
Referenced by device_audio_task(), and usb_user_endpoint_init().
#define EP_KBD_IN 1 |
Referenced by device_hid_task(), and usb_user_endpoint_init().
#define NB_ENDPOINTS 4 |
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
void usb_suspend_action | ( | void | ) |
References AVR32_PM_MCSEL_SLOW, cpu_delay_us(), pm_cksel(), pm_cksel_get(), pm_cksel_set(), pm_get_clock(), pm_switch_to_clock(), and SLEEP.