diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-16 13:05:17 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-16 13:05:17 +0100 |
commit | bbdcd2af9193dde1d7aca25dfdb920fa062fe9da (patch) | |
tree | eed7eeca5b844a131a966e43d96334603dfd67fe | |
parent | 440cd59182a962b7f987d990db6d43a6026877ba (diff) | |
download | fmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.tar.gz fmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.tar.xz fmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.zip |
usb: remove unnecessary INTENs
-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; |