37 lines
640 B
C++
37 lines
640 B
C++
#ifndef SERIAL_USB_HOST_H
|
|
#define SERIAL_USB_HOST_H
|
|
|
|
#include "esp_log.h"
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/semphr.h"
|
|
#include "freertos/task.h"
|
|
|
|
#include "usb/cdc_acm_host.h"
|
|
#include "usb/vcp_ch34x.hpp"
|
|
#include "usb/vcp_cp210x.hpp"
|
|
#include "usb/vcp_ftdi.hpp"
|
|
#include "usb/vcp.hpp"
|
|
#include "usb/usb_host.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
class SerialUSBHost
|
|
{
|
|
public:
|
|
SerialUSBHost(/* args */);
|
|
SemaphoreHandle_t device_disconnected_sem;
|
|
private:
|
|
/**
|
|
* @brief USB Host library handling task
|
|
*
|
|
* @param arg unused but required for task
|
|
*/
|
|
static void usb_lib_task(void* arg);
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif |