AP_HAL_ChibiOS: fix bootloaders to turn on switched supply during bootloader

This commit is contained in:
Henry Wurzburg 2022-07-16 07:37:07 -05:00 committed by Andrew Tridgell
parent e4ce4ebed3
commit 2f90806f0a
3 changed files with 9 additions and 0 deletions

View File

@ -33,3 +33,6 @@ PB12 OSD_CS CS
PC13 FLASH_CS CS
PC1 SDCARD_CS CS
# Turn on switched supply and camera switch/output during bootloader to match default
PA4 PINIO1 OUTPUT LOW
PB5 PINIO2 OUTPUT LOW

View File

@ -41,3 +41,6 @@ PC4 IMU1_CS CS
PB12 MAX7456_CS CS
PD7 IMU2_CS CS
PE11 SPARE_CS CS
# turn switched supply on at power up
PE4 PINIO1 OUTPUT LOW

View File

@ -38,6 +38,9 @@ PA12 OTG_FS_DP OTG1
PA13 JTMS-SWDIO SWD
PA14 JTCK-SWCLK SWD
# make sure Vsw is on during bootloader
PD10 PINIO1 OUTPUT LOW
PE3 LED_BOOTLOADER OUTPUT LOW
define HAL_LED_ON 0