diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-07-07 11:14:43 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-07-15 11:49:44 -0500 |
| commit | 6160d11c5a04f60e54ce977fd73fafa5ba858aa0 (patch) | |
| tree | dc8bda08584d1a5f00761677d9a8094cbbf96398 /ports/litex | |
| parent | 36b46465167f15eaf8535608b16859e6de10fac8 (diff) | |
supervisor: factor out, Handle USB via background callback
Diffstat (limited to 'ports/litex')
| -rw-r--r-- | ports/litex/mphalport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/litex/mphalport.c b/ports/litex/mphalport.c index 84a546795..862f16393 100644 --- a/ports/litex/mphalport.c +++ b/ports/litex/mphalport.c @@ -31,6 +31,7 @@ #include "py/mphal.h" #include "py/mpstate.h" #include "py/gc.h" +#include "supervisor/usb.h" #include "csr.h" #include "generated/soc.h" @@ -49,7 +50,7 @@ void isr(void) { #ifdef CFG_TUSB_MCU if (irqs & (1 << USB_INTERRUPT)) - tud_int_handler(0); + usb_irq_handler(); #endif if (irqs & (1 << TIMER0_INTERRUPT)) SysTick_Handler(); |
