HAL_ChibiOS: allow safety button on CUAV_GPS to be used for "stay in bootloader"

allows for recovery of bad CAN firmware
This commit is contained in:
Andrew Tridgell 2019-09-10 13:36:03 +10:00
parent c6a9f067e2
commit b33afde884
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,10 @@ STM32_VDD 330U
# order of UARTs
UART_ORDER
# use safety button to stay in bootloader
PB3 STAY_IN_BOOTLOADER INPUT PULLDOWN
define HAL_STAY_IN_BOOTLOADER_VALUE 1
PB12 LED_BOOTLOADER OUTPUT LOW
define HAL_LED_ON 1

View File

@ -93,7 +93,7 @@ PB1 SAFE_LED OUTPUT HIGH
define SAFE_LED_ON 0
# safety button
PB3 SAFE_BUTTON INPUT
PB3 SAFE_BUTTON INPUT PULLDOWN
# WS2812 LED
PB0 TIM3_CH3 TIM3 PWM(1)