#include "conf_usb.h"
#include "board.h"
#include "usb_drv.h"
#include "usb_host_enum.h"
#include "usb_host_task.h"
#include "host_template_task.h"
Macros | |
#define | LED_APPLI_0 LED_BI0_GREEN |
#define | LED_APPLI_1 LED_BI0_RED |
Functions | |
void | host_get_data_callback (Status_t status, U16 nb_byte) |
void | host_send_data_callback (Status_t status, U16 nb_byte) |
void | host_sof_action (void) |
host_sof_action More... | |
void | host_template_task (void) |
High-level host applicative task entry point Put here the code of your host application. More... | |
void | host_template_task_init (void) |
This function initializes the high-level host application. More... | |
Variables | |
static U8 | buf [64] |
static volatile U8 | busy |
static U8 | pipe_in |
static U8 | pipe_out |
static U16 | sof_cnt |
volatile bool | tpl_new_device_connected |
#define LED_APPLI_0 LED_BI0_GREEN |
Referenced by host_template_task().
#define LED_APPLI_1 LED_BI0_RED |
Referenced by host_send_data_callback(), and host_template_task().
References buf, host_get_data_callback, host_get_data_interrupt(), LED_APPLI_1, PIPE_GOOD, and pipe_in.
void host_template_task | ( | void | ) |
High-level host applicative task entry point Put here the code of your host application.
The sample code just sends and receives 64 bytes from IN and OUT pipes.
References buf, busy, configTSK_USB_HTP_PERIOD, Get_class, Get_ep_pipe, Get_nb_supported_interface, host_get_data(), Host_request_resume, Host_request_suspend, host_send_data(), host_send_data_callback, host_send_data_interrupt(), host_set_feature_remote_wakeup, i, Is_ep_in, Is_host_ready, Is_host_suspended, LED_APPLI_0, LED_APPLI_1, pipe_in, pipe_out, sof_cnt, tpl_new_device_connected, VENDOR_CLASS, vTaskDelayUntil(), and xTaskGetTickCount().
Referenced by host_template_task_init(), and main().
void host_template_task_init | ( | void | ) |
This function initializes the high-level host application.
Here initialize specific hardware resources requirements.
References buf, busy, configTSK_USB_HTP_NAME, configTSK_USB_HTP_PRIORITY, configTSK_USB_HTP_STACK_SIZE, host_template_task(), i, NULL, sof_cnt, tpl_new_device_connected, and xTaskCreate.
Referenced by main().
|
static |
Referenced by ascii_to_key(), at45dbx_read_multiple_sector_callback(), at45dbx_write_multiple_sector_callback(), console_gets(), console_poll(), console_schedule_cmd(), device_template_task(), document_index_html_cb(), e_ethernet_cmd_get_config(), get_adc(), get_rx(), get_tx(), host_send_data_callback(), host_template_task(), host_template_task_init(), init_mparams(), ip2str(), mac2str(), main(), nvm_read(), nvm_write(), read(), ssid2str(), uc3_round_trace_init(), uhd_ep_run(), uhi_cdc_get_nb_received(), uhi_cdc_getc(), uhi_cdc_putc(), uhi_cdc_rx_received(), uhi_cdc_tx_send(), uhi_cdc_tx_update(), and write().
|
static |
Referenced by host_get_data_callback(), host_template_task(), and host_template_task_init().
|
static |
Referenced by host_send_data_callback(), and host_template_task().
|
static |
Referenced by host_template_task().
|
static |
Referenced by host_sof_action(), host_template_task(), and host_template_task_init().