abstract call chains from hal usb isr

This commit is contained in:
hathach
2013-03-04 18:46:02 +07:00
parent a259be6edf
commit 2c8596edeb
8 changed files with 37 additions and 11 deletions

View File

@@ -54,3 +54,15 @@ tusb_error_t tusb_init(void)
return TUSB_ERROR_NONE;
}
// called from hal layer
void tusb_isr(uint8_t controller_id)
{
#if MODE_HOST_SUPPORTED
hcd_isr(controller_id);
#endif
#ifdef TUSB_CFG_DEVICE
dcd_isr(controller_id);
#endif
}