The USB task checks the income of new requests from the USB host. When a setup request occurs, this task launches the processing of this setup contained in the usb_standard_request.c file. Other class-specific requests are also processed in this file.
Definition in file usb_device_task.c.
#include "conf_usb.h"
#include "compiler.h"
#include "FreeRTOS.h"
#include "task.h"
#include "usb_drv.h"
#include "usb_task.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "usb_device_task.h"
Go to the source code of this file.
Functions | |
void | usb_device_task (void *pvParameters) |
Entry point of the USB device mamagement. | |
void | usb_device_task_init (void) |
This function initializes the USB device controller. | |
void | usb_start_device (void) |
This function starts the USB device controller. | |
Variables | |
volatile Bool | usb_connected |
Public : (Bool) usb_connected usb_connected is set to TRUE when VBus has been detected usb_connected is set to FALSE otherwise. | |
xTaskHandle | usb_device_tsk = NULL |
Handle to the USB Device task. |
volatile Bool usb_connected |
Public : (Bool) usb_connected usb_connected is set to TRUE when VBus has been detected usb_connected is set to FALSE otherwise.
Public: Bool usb_connected usb_connected is set to TRUE when VBus has been detected usb_connected is set to FALSE otherwise Used with USB_DEVICE_FEATURE == ENABLED only.
Definition at line 80 of file usb_device_task.c.
Referenced by usb_device_task(), usb_device_task_init(), usb_general_interrupt_non_naked(), and usb_start_device().
xTaskHandle usb_device_tsk = NULL |
Handle to the USB Device task.
Definition at line 84 of file usb_device_task.c.
Referenced by usb_device_task_init(), and usb_task().