Skip to content

Commit 929f0bd

Browse files
committed
avoid spurious interrupts before object is properly created
1 parent f0fdc0f commit 929f0bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/targets/TARGET_STM/USBHALHost_STM.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ USBHALHost::USBHALHost()
329329
#error "USB pins are not configured !"
330330
#endif
331331

332+
NVIC_DisableIRQ(USBHAL_IRQn);
333+
332334
// Configure USB POWER pin
333335
USB_POWERPIN_CONFIG;
334336

0 commit comments

Comments
 (0)