From bbdcd2af9193dde1d7aca25dfdb920fa062fe9da Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 16 Apr 2017 13:05:17 +0100 Subject: usb: remove unnecessary INTENs --- usb/usb.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/usb/usb.c b/usb/usb.c index 2749e16..5a76825 100644 --- a/usb/usb.c +++ b/usb/usb.c @@ -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; -- cgit v1.2.3-54-g00ecf