#include "conf_usb.h"
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... | |
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().
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