AP_Bootloader: allow OTG2 to be used as OTG1 on boards that need it

This commit is contained in:
Andy Piper 2022-08-17 18:17:11 +02:00 committed by Andrew Tridgell
parent 8ef92805e1
commit bfc82f283b
1 changed files with 3 additions and 1 deletions

View File

@ -323,8 +323,10 @@ jump_to_app()
rccDisableAPB1(~0);
#endif
rccDisableAPB2(~0);
#if HAL_USE_SERIAL_USB == TRUE
#if HAL_USE_SERIAL_USB == TRUE
#if !defined(STM32_OTG2_IS_OTG1)
rccResetOTG_FS();
#endif
#if defined(rccResetOTG_HS)
rccResetOTG_HS();
#endif