HAL_ChibiOS: ensure HI_POWER periph is on

This commit is contained in:
Andrew Tridgell 2021-09-02 20:32:05 +10:00 committed by Peter Barker
parent 532396e5e6
commit 2e4766fe54
1 changed files with 3 additions and 0 deletions

View File

@ -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);