WIP: usb host lib

This commit is contained in:
2025-01-28 18:18:50 +01:00
parent afa7fc7cb0
commit 5fa3d89af8
3 changed files with 68 additions and 62 deletions

View File

@@ -17,11 +17,16 @@
#include <Arduino.h>
class SerialUSBHost
{
class SerialUSBHost {
public:
SerialUSBHost(/* args */);
SemaphoreHandle_t device_disconnected_sem;
SerialUSBHost() = delete;
static void init();
static void handle_event(const cdc_acm_host_dev_event_data_t *event, void *user_ctx);
static bool handle_rx(const uint8_t *data, size_t data_len, void *arg);
static void takeSem();//XXX
private:
/**
* @brief USB Host library handling task