diff options
author | deadprogram <[email protected]> | 2023-02-17 00:48:43 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-02-19 08:32:39 +0100 |
commit | e066e67bafe4824a8565141e86cb14eb4602c219 (patch) | |
tree | c5703846833d19f697e9dbb04ba282655a831f22 | |
parent | cacb452aa6c8f4690ca41cce8ec19e6a5db350f4 (diff) | |
download | tinygo-e066e67bafe4824a8565141e86cb14eb4602c219.tar.gz tinygo-e066e67bafe4824a8565141e86cb14eb4602c219.zip |
machine/rp2040: change calling order for device enumeration fix to do first
Signed-off-by: deadprogram <[email protected]>
-rw-r--r-- | src/machine/machine_rp2040_usb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine_rp2040_usb.go b/src/machine/machine_rp2040_usb.go index cb3bb789d..6e6fd4962 100644 --- a/src/machine/machine_rp2040_usb.go +++ b/src/machine/machine_rp2040_usb.go @@ -127,10 +127,10 @@ func handleUSBIRQ(intr interrupt.Interrupt) { // Bus is reset 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.ADDR_ENDP.Set(0) + fixRP2040UsbDeviceEnumeration() + rp.USBCTRL_REGS.ADDR_ENDP.Set(0) initEndpoint(0, usb.ENDPOINT_TYPE_CONTROL) - fixRP2040UsbDeviceEnumeration() } } |