23 static char mac_addr_buf[MAC_ADDRESS_BUFFER_SIZE];
30 const uint8_t *full_speed_config = this->
tusb_cfg_.descriptor.full_speed_config;
31 this->
tusb_cfg_ = TINYUSB_DEFAULT_CONFIG();
32 this->
tusb_cfg_.port = TINYUSB_PORT_FULL_SPEED_0;
44 .full_speed_config = full_speed_config,
54#if !(CFG_TUD_CDC > 0 || CFG_TUD_MSC > 0 || CFG_TUD_NCM > 0)
55 if (this->
tusb_cfg_.descriptor.full_speed_config ==
nullptr) {
56 ESP_LOGE(TAG,
"No USB class configured");
62 this->
tusb_cfg_.event_cb = tinyusb_event_cb;
64 esp_err_t result = tinyusb_driver_install(&this->
tusb_cfg_);
65 if (result != ESP_OK) {
66 ESP_LOGE(TAG,
"tinyusb_driver_install failed: %s", esp_err_to_name(result));