diff options
Diffstat (limited to 'usb')
-rw-r--r-- | usb/usb.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -38,8 +38,7 @@ void usb_setup(void) /* Initial Configuration */ SET_MASKED(USB0_USBCTRL, BV(USBCTRL_SUSP) | BV(USBCTRL_PDE), 0); SET_BIT(USB0_CONTROL, CONTROL_DPPULLUPNONOTG); - USB0_INTEN = BV(INTEN_STALLEN) | BV(INTEN_RESUMEEN) | - BV(INTEN_SLEEPEN) | BV(INTEN_ERROREN) | BV(INTEN_USBRSTEN); + USB0_INTEN = BV(INTEN_STALLEN) | BV(INTEN_ERROREN) | BV(INTEN_USBRSTEN); /* NVIC Enable interrupt */ ISR_CLRPEND(73); @@ -83,19 +82,10 @@ void usb_isr(void) uart_puts("INT: stall"); USB0_ISTAT = BV(ISTAT_STALL); } - if (GET_BIT(stat, ISTAT_RESUME)) { - USB0_ISTAT = BV(ISTAT_RESUME); - } - if (GET_BIT(stat, ISTAT_SLEEP)) { - USB0_ISTAT = BV(ISTAT_SLEEP); - } if (GET_BIT(stat, ISTAT_TOKDNE)) { i_tokdne(); USB0_ISTAT = BV(ISTAT_TOKDNE); } - if (GET_BIT(stat, ISTAT_SOFTOK)) { - USB0_ISTAT = BV(ISTAT_SOFTOK); - } if (GET_BIT(stat, ISTAT_ERROR)) { uart_printf("INT: error (0x%x)\n", (unsigned)USB0_ERRSTAT); USB0_ERRSTAT = USB0_ERRSTAT; |