summaryrefslogtreecommitdiffstats
path: root/usb
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-04-16 13:05:17 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-04-16 13:05:17 +0100
commitbbdcd2af9193dde1d7aca25dfdb920fa062fe9da (patch)
treeeed7eeca5b844a131a966e43d96334603dfd67fe /usb
parent440cd59182a962b7f987d990db6d43a6026877ba (diff)
downloadfmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.tar.gz
fmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.tar.xz
fmk-bbdcd2af9193dde1d7aca25dfdb920fa062fe9da.zip
usb: remove unnecessary INTENs
Diffstat (limited to 'usb')
-rw-r--r--usb/usb.c12
1 files changed, 1 insertions, 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;