AP_HAL_ChibiOS: Pixhawk6C peripheral power on at startup

This commit is contained in:
Randy Mackay 2024-04-16 11:53:04 +09:00 committed by Andrew Tridgell
parent 561d1254a1
commit 0b3b2148cb
2 changed files with 6 additions and 8 deletions

View File

@ -59,9 +59,9 @@ PD2 UART5_RX UART5
PD8 USART3_TX USART3
PD9 USART3_RX USART3
# start peripheral power off
PC10 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PE2 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PC10 nVDD_5V_HIPOWER_EN OUTPUT LOW
PE2 nVDD_5V_PERIPH_EN OUTPUT LOW
# LEDs
PD10 LED_ACTIVITY OUTPUT OPENDRAIN GPIO(90) HIGH # red

View File

@ -164,11 +164,9 @@ define HAL_IMUHEAT_I_DEFAULT 0.07
# power enable pins
PB2 VDD_3V3_SENSORS1_EN OUTPUT HIGH
# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
PC10 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PE2 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PC10 nVDD_5V_HIPOWER_EN OUTPUT LOW
PE2 nVDD_5V_PERIPH_EN OUTPUT LOW
# Control of Spektrum power pin
PH2 SPEKTRUM_PWR OUTPUT HIGH GPIO(73)