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:
Ibrahim Abd Elkader 2020-07-31 19:22:16 +02:00 committed by GitHub
commit 798dff2648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -328,14 +328,6 @@ void usbdbg_control(void *buffer, uint8_t request, uint32_t length)
NVIC_SystemReset();
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: {
xfer_bytes = 0;
xfer_length = length;

View File

@ -46,7 +46,6 @@ enum usbdbg_cmd {
USBDBG_ATTR_READ =0x8A,
USBDBG_ATTR_WRITE =0x0B,
USBDBG_SYS_RESET =0x0C,
USBDBG_SYS_RESET_TO_BL =0x0E,
USBDBG_FB_ENABLE =0x0D,
USBDBG_TX_BUF_LEN =0x8E,
USBDBG_TX_BUF =0x8F,