mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_ChibiOS: bring up sensors rail after boot on TBS F7
this prevents a reset loop on GPIO config
This commit is contained in:
parent
fc5ebbf52e
commit
94bace91a4
@ -10,8 +10,7 @@ STM32_ST_USE_TIMER 5
|
||||
|
||||
# enabling PE3 on the Colibri causes it to reset on startup
|
||||
undef PE3
|
||||
undef VDD_3V3_SENSORS_EN
|
||||
PE3 DUMMY_PE3 INPUT
|
||||
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
|
||||
|
||||
# order of UARTs (and USB). Telem2 is UART4 on the mini, USART3 is not available
|
||||
UART_ORDER OTG1 USART1 USART2 UART4 USART6 UART7
|
||||
@ -38,6 +37,8 @@ PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59)
|
||||
PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
|
||||
|
||||
# RCInput on the PPM pin, for all protocols
|
||||
undef PG9
|
||||
undef USART6_RX
|
||||
PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
|
||||
|
||||
# setup for supplied power brick
|
||||
|
@ -262,7 +262,7 @@ void set_fast_reboot(enum rtc_boot_magic v)
|
||||
*/
|
||||
void peripheral_power_enable(void)
|
||||
{
|
||||
#if defined(HAL_GPIO_PIN_nVDD_5V_PERIPH_EN) || defined(HAL_GPIO_PIN_nVDD_5V_HIPOWER_EN)
|
||||
#if defined(HAL_GPIO_PIN_nVDD_5V_PERIPH_EN) || defined(HAL_GPIO_PIN_nVDD_5V_HIPOWER_EN) || defined(HAL_GPIO_PIN_VDD_3V3_SENSORS_EN)
|
||||
// we don't know what state the bootloader had the CTS pin in, so
|
||||
// wait here with it pulled up from the PAL table for enough time
|
||||
// for the radio to be definately powered down
|
||||
@ -277,6 +277,10 @@ void peripheral_power_enable(void)
|
||||
#ifdef HAL_GPIO_PIN_nVDD_5V_HIPOWER_EN
|
||||
palWriteLine(HAL_GPIO_PIN_nVDD_5V_HIPOWER_EN, 0);
|
||||
#endif
|
||||
#ifdef HAL_GPIO_PIN_VDD_3V3_SENSORS_EN
|
||||
// the TBS-Colibri-F7 needs PE3 low
|
||||
palWriteLine(HAL_GPIO_PIN_VDD_3V3_SENSORS_EN, 1);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user