#include "conf_usb.h"
#include "board.h"
#include "FreeRTOS.h"
#include "task.h"
#include "usb_drv.h"
#include "usb_host_enum.h"
#include "usb_host_task.h"
#include "host_mem.h"
#include "ctrl_access.h"
#include "navigation.h"
#include "host_mass_storage_task.h"
Functions | |
void | host_mass_storage_task (void *pvParameters) |
This function manages the host mass-storage task. More... | |
void | host_mass_storage_task_init (void) |
This function initializes the host mass-storage task. More... | |
void | host_sof_action (void) |
host_sof_action More... | |
Variables | |
static const char | log_ms_dev_connected [] = "Mass-storage device connected\n" |
volatile bool | ms_connected |
volatile bool | ms_new_device_connected |
static uint16_t | sof_cnt |
void host_mass_storage_task | ( | void * | pvParameters | ) |
This function manages the host mass-storage task.
References capacity, configTSK_USB_HMS_PERIOD, CTRL_FAIL, CTRL_GOOD, g_pipe_ms_in, g_pipe_ms_out, Get_class, Get_ep_pipe, Get_nb_supported_interface, host_get_lun(), host_ms_inquiry(), host_ms_request_sense(), host_read_capacity(), host_selected_lun, host_test_unit_ready(), Is_ep_in, Is_host_ready, LED0, LED1, LED_Display_Field(), LED_MONO0_GREEN, LED_MONO1_GREEN, LED_MONO2_GREEN, LED_MONO3_GREEN, log_ms_dev_connected, LOG_STR, MS_CLASS, ms_connected, ms_new_device_connected, sof_cnt, vTaskDelayUntil(), and xTaskGetTickCount().
Referenced by host_mass_storage_task_init(), and main().
void host_mass_storage_task_init | ( | void | ) |
This function initializes the host mass-storage task.
References configTSK_USB_HMS_NAME, configTSK_USB_HMS_PRIORITY, configTSK_USB_HMS_STACK_SIZE, host_mass_storage_task(), ms_connected, ms_new_device_connected, sof_cnt, and xTaskCreate.
Referenced by main().
|
static |
Referenced by host_mass_storage_task().
|
static |
Referenced by host_mass_storage_task(), host_mass_storage_task_init(), and host_sof_action().