diff options
| author | Sean Cross <[email protected]> | 2019-11-13 11:10:37 -0800 |
|---|---|---|
| committer | Sean Cross <[email protected]> | 2019-11-13 11:10:37 -0800 |
| commit | 679821e9174f9410960f974eefd46a94e74cfeda (patch) | |
| tree | 2186cc9b8b26690d35674b970af2f03b793f5dd2 | |
| parent | 67267a93997770a2f59d606b5eb2f2d96b3a1437 (diff) | |
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 <[email protected]>
| -rw-r--r-- | hw/bsp/fomu/fomu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/bsp/fomu/fomu.c b/hw/bsp/fomu/fomu.c index 3303a0826..519c63630 100644 --- a/hw/bsp/fomu/fomu.c +++ b/hw/bsp/fomu/fomu.c @@ -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); |
