SerialUSBHost Lib WIP
This commit is contained in:
37
lib/SerialUSBHost/include/SerialUSBHost.h
Normal file
37
lib/SerialUSBHost/include/SerialUSBHost.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#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
|
Reference in New Issue
Block a user