Collaboration diagram for USB device operating mode configuration:
![]() |
Modules | |
USB device custom actions | |
Defines | |
#define | NB_ENDPOINTS 4 |
#define | TX_EP 0x01 |
#define | RX_EP 0x02 |
#define | INT_EP 0x03 |
#define | USB_REMOTE_WAKEUP DISABLED |
#define | VBUS_SENSING_IO DISABLED |
#define | USB_RESET_CPU DISABLED |
#define | Usb_unicode(a) ((U16)(a)) |
Functions | |
void | sof_action (void) |
sof_action | |
void | suspend_action (void) |
#define NB_ENDPOINTS 4 |
Definition at line 60 of file conf_usb.h.
#define TX_EP 0x01 |
Definition at line 61 of file conf_usb.h.
Referenced by putchar(), uart_usb_flush(), and usb_user_endpoint_init().
#define RX_EP 0x02 |
Definition at line 62 of file conf_usb.h.
Referenced by uart_usb_getchar(), uart_usb_test_hit(), and usb_user_endpoint_init().
#define INT_EP 0x03 |
#define USB_REMOTE_WAKEUP DISABLED |
#define VBUS_SENSING_IO DISABLED |
Definition at line 67 of file conf_usb.h.
#define USB_RESET_CPU DISABLED |
Definition at line 69 of file conf_usb.h.
#define Usb_unicode | ( | a | ) | ((U16)(a)) |
Definition at line 71 of file conf_usb.h.
void sof_action | ( | void | ) |
sof_action
This function increments the cpt_sof counter each times the USB Start Of Frame interrupt subroutine is executed (1ms) Usefull to manage time delays
none |
Definition at line 141 of file cdc_task.c.
References cpt_sof.
00142 { 00143 cpt_sof++; 00144 }
void suspend_action | ( | void | ) |