mirror of
https://github.com/hathach/tinyusb.git
synced 2025-12-01 12:24:17 +00:00
Declare interrupt handler functions for ESP32 DWC2
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user