Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup #26753

Merged
merged 6 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ define HAL_I2C_INTERNAL_MASK 1
# enable pins
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW

# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
# start peripheral power on
PD11 VDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 VDD_5V_PERIPH_EN OUTPUT HIGH

Expand Down
4 changes: 1 addition & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ define HAL_I2C_INTERNAL_MASK 1
# enable pins
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW

# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
# start peripheral power on
PD11 VDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 VDD_5V_PERIPH_EN OUTPUT HIGH

Expand Down
8 changes: 3 additions & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ define HAL_I2C_INTERNAL_MASK 1
# enable pins
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW

# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
PF12 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PF12 nVDD_5V_HIPOWER_EN OUTPUT LOW
PG4 nVDD_5V_PERIPH_EN OUTPUT LOW

PG5 VDD_5V_RC_EN OUTPUT HIGH
PG6 VDD_5V_WIFI_EN OUTPUT HIGH
Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk5X/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ PD9 USART3_RX USART3 NODMA
# armed indication
PC12 nARMED OUTPUT HIGH

# start peripheral power off
PF12 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PF12 nVDD_5V_HIPOWER_EN OUTPUT LOW
PG4 nVDD_5V_PERIPH_EN OUTPUT LOW

# LEDs
PE3 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # red
Expand Down
8 changes: 3 additions & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk5X/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ PD15 VDD_3V3_SENSORS2_EN OUTPUT HIGH
PE7 VDD_3V3_SENSORS3_EN OUTPUT HIGH
PG8 VDD_3V3_SENSORS4_EN OUTPUT HIGH

# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
PF12 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PF12 nVDD_5V_HIPOWER_EN OUTPUT LOW
PG4 nVDD_5V_PERIPH_EN OUTPUT LOW

# Control of Spektrum power pin
PH2 SPEKTRUM_PWR OUTPUT HIGH GPIO(73)
Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6C/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6C/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ PD9 USART3_RX USART3
# armed indication
PE6 nARMED OUTPUT HIGH

# start peripheral power off
PF12 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PF12 nVDD_5V_HIPOWER_EN OUTPUT LOW
PG4 nVDD_5V_PERIPH_EN OUTPUT LOW

# LEDs
PE3 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # red
Expand Down
8 changes: 3 additions & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk6X/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,9 @@ PF4 VDD_3V3_SENSORS2_EN OUTPUT HIGH
PE7 VDD_3V3_SENSORS3_EN OUTPUT HIGH
PG8 VDD_3V3_SENSORS4_EN OUTPUT HIGH

# start peripheral power off, then enable after init
# this prevents a problem with radios that use RTS for
# bootloader hold
PG10 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# start peripheral power on
PG10 nVDD_5V_HIPOWER_EN OUTPUT LOW
PG4 nVDD_5V_PERIPH_EN OUTPUT LOW

# Control of Spektrum power pin
PH2 SPEKTRUM_PWR OUTPUT HIGH GPIO(73)
Expand Down
Loading