adding tud_isr/tuh_isr with lpc18/43

This commit is contained in:
hathach
2019-11-21 22:20:30 +07:00
parent 9fe34c2e62
commit bbec47b647
8 changed files with 81 additions and 9 deletions
+25
View File
@@ -230,6 +230,31 @@ void board_init(void)
// TODO Remove R170, R171, solder a pair of 15K to USB1 D+/D- to test with USB1 Host
}
//--------------------------------------------------------------------+
// USB Interrupt Handler
//--------------------------------------------------------------------+
void USB0_IRQHandler(void)
{
#if TUSB_OPT_HOST_ENABLED
tuh_isr(0);
#endif
#if TUSB_OPT_DEVICE_ENABLED
tud_isr(0);
#endif
}
void USB1_IRQHandler(void)
{
#if TUSB_OPT_HOST_ENABLED
tuh_isr(1);
#endif
#if TUSB_OPT_DEVICE_ENABLED
tud_isr(1);
#endif
}
//--------------------------------------------------------------------+
// Board porting API
//--------------------------------------------------------------------+