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,4 +54,18 @@ tusb_error_t hal_init()
return TUSB_ERROR_NONE;
}
void USB0_IRQHandler(void)
{
#if TUSB_CFG_CONTROLLER0_MODE
tusb_isr(0);
#endif
}
void USB1_IRQHandler(void)
{
#if TUSB_CFG_CONTROLLER1_MODE
tusb_isr(1);
#endif
}
#endif