#include "conf_usb.h"
#include "board.h"
#include "usb_drv.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "device_template_task.h"
Macros | |
#define | LED_APPLI_0 LED_BI0_GREEN |
#define | LED_APPLI_1 LED_BI0_RED |
Functions | |
void | device_template_task (void) |
Entry point of the device applicative task management. More... | |
void | device_template_task_init (void) |
This function initializes the hardware/software resources required for device applicative task. More... | |
void | usb_sof_action (void) |
usb_sof_action More... | |
Variables | |
static U8 | data_length |
static U16 | sof_cnt |
#define LED_APPLI_0 LED_BI0_GREEN |
Referenced by device_template_task().
#define LED_APPLI_1 LED_BI0_RED |
Referenced by device_template_task().
void device_template_task | ( | void | ) |
Entry point of the device applicative task management.
This function links the device application to the USB bus.
References buf, data_length, EP_SIZE_TEMP2, EP_TEMP_IN, EP_TEMP_OUT, Is_device_enumerated, Is_usb_in_ready, Is_usb_out_received, LED0, LED1, LED_APPLI_0, LED_APPLI_1, LED_Display_Field(), LED_MONO0_GREEN, LED_MONO1_GREEN, LED_MONO2_GREEN, LED_MONO3_GREEN, LED_Off(), LED_On(), sof_cnt, Usb_ack_in_ready_send, Usb_ack_out_received_free, Usb_byte_count, usb_read_ep_rxpacket(), Usb_reset_endpoint_fifo_access, and usb_write_ep_txpacket().
Referenced by device_template_task_init(), and main().
void device_template_task_init | ( | void | ) |
This function initializes the hardware/software resources required for device applicative task.
References data_length, device_template_task(), Is_usb_device, sof_cnt, and Usb_enable_sof_interrupt.
Referenced by main().
|
static |
|
static |
Referenced by device_template_task(), device_template_task_init(), and usb_sof_action().