fomu: bsp: don't call usb isr when usb is disabled

When compiled without usb support, we don't want to call the USB ISR.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-11-13 11:10:37 -08:00
parent 67267a9399
commit 679821e917
1 changed files with 2 additions and 0 deletions

View File

@ -63,9 +63,11 @@ void isr(void)
irqs = irq_pending() & irq_getmask();
#if CFG_TUSB_RHPORT0_MODE == OPT_MODE_DEVICE
if (irqs & (1 << USB_INTERRUPT)) {
hal_dcd_isr(0);
}
#endif
if (irqs & (1 << TIMER0_INTERRUPT)) {
system_ticks++;
timer0_ev_pending_write(1);