stm32: call "try_request_canboot" for bootloader requests

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-05-31 07:34:26 -04:00 committed by KevinOConnor
parent 129091d811
commit 3c7eea7336
5 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,7 @@ check_usb_dfu_bootloader(void)
void void
usb_request_bootloader(void) usb_request_bootloader(void)
{ {
try_request_canboot();
usb_reboot_for_dfu_bootloader(); usb_reboot_for_dfu_bootloader();
} }

View File

@ -243,6 +243,7 @@ usb_stm32duino_bootloader(void)
void void
usb_request_bootloader(void) usb_request_bootloader(void)
{ {
try_request_canboot();
if (CONFIG_STM32_FLASH_START_800) if (CONFIG_STM32_FLASH_START_800)
usb_hid_bootloader(); usb_hid_bootloader();
else if (CONFIG_STM32_FLASH_START_2000) else if (CONFIG_STM32_FLASH_START_2000)

View File

@ -231,6 +231,7 @@ check_usb_dfu_bootloader(void)
void void
usb_request_bootloader(void) usb_request_bootloader(void)
{ {
try_request_canboot();
if (CONFIG_STM32_FLASH_START_4000) if (CONFIG_STM32_FLASH_START_4000)
usb_hid_bootloader(); usb_hid_bootloader();
usb_reboot_for_dfu_bootloader(); usb_reboot_for_dfu_bootloader();

View File

@ -133,6 +133,7 @@ check_usb_dfu_bootloader(void)
void void
usb_request_bootloader(void) usb_request_bootloader(void)
{ {
try_request_canboot();
usb_reboot_for_dfu_bootloader(); usb_reboot_for_dfu_bootloader();
} }

View File

@ -190,6 +190,7 @@ clock_setup(void)
void void
usb_request_bootloader(void) usb_request_bootloader(void)
{ {
try_request_canboot();
} }