Declare interrupt handler functions for ESP32 DWC2

This commit is contained in:
Me No Dev
2025-11-04 10:48:24 +02:00
committed by GitHub
parent a6c16d1475
commit daa31d4810

View File

@ -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); const tusb_role_t role = (tusb_role_t) tu_u16_high((uint16_t)(uintptr_t)arg);
#if CFG_TUD_ENABLED #if CFG_TUD_ENABLED
if (role == TUSB_ROLE_DEVICE) { if (role == TUSB_ROLE_DEVICE) {
void dcd_int_handler(uint8_t rhport);
dcd_int_handler(rhport); dcd_int_handler(rhport);
} }
#endif #endif
#if CFG_TUH_ENABLED && !CFG_TUH_MAX3421 #if CFG_TUH_ENABLED && !CFG_TUH_MAX3421
if (role == TUSB_ROLE_HOST) { if (role == TUSB_ROLE_HOST) {
void hcd_int_handler(uint8_t rhport, bool in_isr);
hcd_int_handler(rhport, true); hcd_int_handler(rhport, true);
} }
#endif #endif