mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
machine/rp2040: change calling order for device enumeration fix to do first
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -127,10 +127,10 @@ func handleUSBIRQ(intr interrupt.Interrupt) {
|
|||||||
// Bus is reset
|
// Bus is reset
|
||||||
if (status & rp.USBCTRL_REGS_INTS_BUS_RESET) > 0 {
|
if (status & rp.USBCTRL_REGS_INTS_BUS_RESET) > 0 {
|
||||||
rp.USBCTRL_REGS.SIE_STATUS.Set(rp.USBCTRL_REGS_SIE_STATUS_BUS_RESET)
|
rp.USBCTRL_REGS.SIE_STATUS.Set(rp.USBCTRL_REGS_SIE_STATUS_BUS_RESET)
|
||||||
rp.USBCTRL_REGS.ADDR_ENDP.Set(0)
|
|
||||||
|
|
||||||
initEndpoint(0, usb.ENDPOINT_TYPE_CONTROL)
|
|
||||||
fixRP2040UsbDeviceEnumeration()
|
fixRP2040UsbDeviceEnumeration()
|
||||||
|
|
||||||
|
rp.USBCTRL_REGS.ADDR_ENDP.Set(0)
|
||||||
|
initEndpoint(0, usb.ENDPOINT_TYPE_CONTROL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user