enable_irq since uno bootloader can disable it. systick triggered, however usb still not work with uno

This commit is contained in:
hathach
2023-07-31 16:21:19 +07:00
parent feb58ebd54
commit 0d9973ef87
2 changed files with 5 additions and 0 deletions

View File

@@ -740,6 +740,7 @@ void dcd_init(uint8_t rhport)
rusb->BEMPENB = 1;
rusb->BRDYENB = 1;
// If VBUS (detect) pin is not used, application need to call tud_connect() manually after tud_init()
if (rusb->INTSTS0_b.VBSTS) {
dcd_connect(rhport);
}