From 2e4766fe54e4e88dd99cb834733d5f447d952b8e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Sep 2021 20:32:05 +1000 Subject: [PATCH] HAL_ChibiOS: ensure HI_POWER periph is on --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c index fd111c9f22..f6663286a4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c @@ -305,6 +305,9 @@ 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_5V_HIPOWER_EN + palWriteLine(HAL_GPIO_PIN_VDD_5V_HIPOWER_EN, 1); +#endif #ifdef HAL_GPIO_PIN_VDD_3V3_SENSORS_EN // the TBS-Colibri-F7 needs PE3 low at power on palWriteLine(HAL_GPIO_PIN_VDD_3V3_SENSORS_EN, 1);