chg: Shortend a wait. Not sure why we wait here.
This commit is contained in:
@@ -1091,7 +1091,9 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||||||
case CMD_FINISH_WRITE:
|
case CMD_FINISH_WRITE:
|
||||||
case CMD_HARDWARE_RESET:
|
case CMD_HARDWARE_RESET:
|
||||||
usb_disable();
|
usb_disable();
|
||||||
SpinDelay(2000);
|
|
||||||
|
// (iceman) why this wait?
|
||||||
|
SpinDelay(1000);
|
||||||
AT91C_BASE_RSTC->RSTC_RCR = RST_CONTROL_KEY | AT91C_RSTC_PROCRST;
|
AT91C_BASE_RSTC->RSTC_RCR = RST_CONTROL_KEY | AT91C_RSTC_PROCRST;
|
||||||
// We're going to reset, and the bootrom will take control.
|
// We're going to reset, and the bootrom will take control.
|
||||||
for(;;) {}
|
for(;;) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user