From daa31d4810a18d51fc6fed5f7b1fe1be1e450ac7 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 4 Nov 2025 10:48:24 +0200 Subject: [PATCH] Declare interrupt handler functions for ESP32 DWC2 --- src/portable/synopsys/dwc2/dwc2_esp32.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/portable/synopsys/dwc2/dwc2_esp32.h b/src/portable/synopsys/dwc2/dwc2_esp32.h index a4e0d1770..31ce0fabe 100644 --- a/src/portable/synopsys/dwc2/dwc2_esp32.h +++ b/src/portable/synopsys/dwc2/dwc2_esp32.h @@ -87,11 +87,13 @@ static void dwc2_int_handler_wrap(void* arg) { const tusb_role_t role = (tusb_role_t) tu_u16_high((uint16_t)(uintptr_t)arg); #if CFG_TUD_ENABLED if (role == TUSB_ROLE_DEVICE) { + void dcd_int_handler(uint8_t rhport); dcd_int_handler(rhport); } #endif #if CFG_TUH_ENABLED && !CFG_TUH_MAX3421 if (role == TUSB_ROLE_HOST) { + void hcd_int_handler(uint8_t rhport, bool in_isr); hcd_int_handler(rhport, true); } #endif