Modules | |
USB device custom actions | |
Macros | |
#define | INT_EP 0x03 |
#define | NB_ENDPOINTS 4 |
#define | RX_EP 0x02 |
#define | TX_EP 0x01 |
Functions | |
void | usb_sof_action (void) |
usb_sof_action More... | |
void | usb_suspend_action (void) |
#define INT_EP 0x03 |
Referenced by usb_user_endpoint_init().
#define NB_ENDPOINTS 4 |
#define RX_EP 0x02 |
Referenced by uart_usb_getchar(), uart_usb_test_hit(), and usb_user_endpoint_init().
#define TX_EP 0x01 |
Referenced by uart_usb_flush(), uart_usb_putchar(), uart_usb_tx_ready(), and usb_user_endpoint_init().
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.