mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Bootloader: allow OTG2 to be used as OTG1 on boards that need it
This commit is contained in:
parent
8ef92805e1
commit
bfc82f283b
@ -323,8 +323,10 @@ jump_to_app()
|
|||||||
rccDisableAPB1(~0);
|
rccDisableAPB1(~0);
|
||||||
#endif
|
#endif
|
||||||
rccDisableAPB2(~0);
|
rccDisableAPB2(~0);
|
||||||
#if HAL_USE_SERIAL_USB == TRUE
|
#if HAL_USE_SERIAL_USB == TRUE
|
||||||
|
#if !defined(STM32_OTG2_IS_OTG1)
|
||||||
rccResetOTG_FS();
|
rccResetOTG_FS();
|
||||||
|
#endif
|
||||||
#if defined(rccResetOTG_HS)
|
#if defined(rccResetOTG_HS)
|
||||||
rccResetOTG_HS();
|
rccResetOTG_HS();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user