We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1164cd9 commit 260c24bCopy full SHA for 260c24b
device/esp_tinyusb/tinyusb.c
@@ -11,6 +11,7 @@
11
#include "esp_private/usb_phy.h"
12
#include "tinyusb.h"
13
#include "tinyusb_task.h"
14
+#include "tinyusb_vbus_monitor.h"
15
#include "tusb.h"
16
17
#if (CONFIG_TINYUSB_MSC_ENABLED)
@@ -133,9 +134,8 @@ esp_err_t tinyusb_driver_install(const tinyusb_config_t *config)
133
134
#endif // (SOC_USB_OTG_PERIPH_NUM > 1)
135
136
// OTG IOs config
- const usb_phy_otg_io_conf_t otg_io_conf = USB_PHY_SELF_POWERED_DEVICE(config->phy.vbus_monitor_io);
137
if (config->phy.self_powered) {
138
- phy_conf.otg_io_conf = &otg_io_conf;
+ tinyusb_vbus_monitor_init(config->phy.vbus_monitor_io);
139
}
140
ESP_RETURN_ON_ERROR(usb_new_phy(&phy_conf, &phy_hdl), TAG, "Install USB PHY failed");
141
0 commit comments