Preserve state across resets by putting Wormhole to the newly added .noinit section. Rename The jump to bootloader USB command to reenumerate and generalize accordingly by handling the passed reenumeration mode.
This commit is contained in:
@@ -101,7 +101,7 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event,
|
||||
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
USB_DeviceKhciIsrFunction(Wormhole->enumerationMode == EnumerationMode_BusPal
|
||||
USB_DeviceKhciIsrFunction(Wormhole.enumerationMode == EnumerationMode_BusPal
|
||||
? BuspalCompositeUsbDevice.device_handle
|
||||
: UsbCompositeDevice.deviceHandle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user