mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #867 from openmv/revert-866-dario/usb_reset
Revert "added system reset to bootloader command for portenta"
This commit is contained in:
commit
798dff2648
@ -328,14 +328,6 @@ void usbdbg_control(void *buffer, uint8_t request, uint32_t length)
|
|||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case USBDBG_SYS_RESET_TO_BL:{
|
|
||||||
RTC_HandleTypeDef RTCHandle;
|
|
||||||
RTCHandle.Instance = RTC;
|
|
||||||
HAL_RTCEx_BKUPWrite(&RTCHandle, RTC_BKP_DR0, 0xDF59);
|
|
||||||
NVIC_SystemReset();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case USBDBG_FB_ENABLE: {
|
case USBDBG_FB_ENABLE: {
|
||||||
xfer_bytes = 0;
|
xfer_bytes = 0;
|
||||||
xfer_length = length;
|
xfer_length = length;
|
||||||
|
|||||||
@ -46,7 +46,6 @@ enum usbdbg_cmd {
|
|||||||
USBDBG_ATTR_READ =0x8A,
|
USBDBG_ATTR_READ =0x8A,
|
||||||
USBDBG_ATTR_WRITE =0x0B,
|
USBDBG_ATTR_WRITE =0x0B,
|
||||||
USBDBG_SYS_RESET =0x0C,
|
USBDBG_SYS_RESET =0x0C,
|
||||||
USBDBG_SYS_RESET_TO_BL =0x0E,
|
|
||||||
USBDBG_FB_ENABLE =0x0D,
|
USBDBG_FB_ENABLE =0x0D,
|
||||||
USBDBG_TX_BUF_LEN =0x8E,
|
USBDBG_TX_BUF_LEN =0x8E,
|
||||||
USBDBG_TX_BUF =0x8F,
|
USBDBG_TX_BUF =0x8F,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user