Skip to content

Commit

Permalink
AP_HAL_ChibiOS: Pixhawk6X peripheral power on at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Apr 10, 2024
1 parent 319d1a7 commit 6c683d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
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

0 comments on commit 6c683d3

Please sign in to comment.