summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2021-09-23 13:36:28 +0200
committerJerzy Kasenberg <[email protected]>2021-09-23 14:12:50 +0200
commitc4277124499430ecfc6bed9cb2789144a3872b02 (patch)
tree4fc27885c0352dc9dda2ec8a4e83295a529587b6 /src
parent2eaf99e0aa9c10d62dd8d0a4e765f5941bfeaf98 (diff)
dcd_da146xx: Handle only enabled interrupts
Not much of an improvement but handle only interrupts that were enabled and are expected.
Diffstat (limited to 'src')
-rw-r--r--src/portable/dialog/da146xx/dcd_da146xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/dialog/da146xx/dcd_da146xx.c b/src/portable/dialog/da146xx/dcd_da146xx.c
index 112cdb502..b7ef77c01 100644
--- a/src/portable/dialog/da146xx/dcd_da146xx.c
+++ b/src/portable/dialog/da146xx/dcd_da146xx.c
@@ -1037,7 +1037,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
void dcd_int_handler(uint8_t rhport)
{
- uint32_t int_status = USB->USB_MAEV_REG;
+ uint32_t int_status = USB->USB_MAEV_REG & USB->USB_MAMSK_REG;
(void)rhport;