Skip to content

Commit 423527b

Browse files
committed
added the soc periph dependency
1 parent e23fc81 commit 423527b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

device/esp_tinyusb/tinyusb_task.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ static void tinyusb_device_task(void *arg)
8787
// Workaround for changing the bvalid override in the tinyusb v0.19.0
8888
if (task_ctx->rhport == TINYUSB_PORT_FULL_SPEED_0) {
8989
USB_DWC_FS.gotgctl_reg.bvalidoven = 0;
90-
} else {
90+
}
91+
#if (SOC_USB_OTG_PERIPH_NUM > 1)
92+
else if (task_ctx->rhport == TINYUSB_PORT_HIGH_SPEED_0) {
9193
USB_DWC_HS.gotgctl_reg.bvalidoven = 0;
9294
}
95+
#endif // SOC_USB_OTG_PERIPH_NUM > 1
9396
#endif // TUSB_VERSION_NUMBER >= 1900
9497

9598
#if (CONFIG_IDF_TARGET_ESP32P4)

0 commit comments

Comments
 (0)