mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-12-26 15:29:16 +00:00
Disable unnecessary interrupt
I don't really need to bother with VBUS or "no-event-wake-up" interrupts. This allows me to strip out more code in the IRQ handler.
This commit is contained in:
parent
f68c1d1d44
commit
0db1710871
@ -101,10 +101,10 @@ void USBD_Start(void)
|
|||||||
USBD_CLR_SE0();
|
USBD_CLR_SE0();
|
||||||
|
|
||||||
/* Clear USB-related interrupts before enable interrupt */
|
/* Clear USB-related interrupts before enable interrupt */
|
||||||
USBD_CLR_INT_FLAG(USBD_INT_BUS | USBD_INT_USB | USBD_INT_FLDET | USBD_INT_WAKEUP);
|
USBD_CLR_INT_FLAG(USBD_INT_BUS | USBD_INT_USB | USBD_INTEN_WKEN_Msk);
|
||||||
|
|
||||||
/* Enable USB-related interrupts. */
|
/* Enable USB-related interrupts. */
|
||||||
USBD_ENABLE_INT(USBD_INT_BUS | USBD_INT_USB | USBD_INT_FLDET | USBD_INT_WAKEUP);
|
USBD_ENABLE_INT(USBD_INT_BUS | USBD_INT_USB | USBD_INTEN_WKEN_Msk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user