Skip to content

Commit

Permalink
AP_Periph: Add FSO_POWER_STACK: Turn LED's off
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Jan 29, 2024
1 parent 56b34c5 commit 4d6fe4f
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions libraries/AP_HAL_ChibiOS/hwdef/FSOPowerStack/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -108,28 +108,29 @@ PB12 SWITCH_MAIN INPUT OPENDRAIN GPIO(64)
PB14 SWITCH_PAYLOAD INPUT OPENDRAIN GPIO(65)

# PDB controls
PB10 PAYLOAD_PC OUTPUT PULLDOWN GPIO(70)
PB11 PAYLOAD_EN OUTPUT PULLDOWN GPIO(71)
PC4 PAYLOAD_1_EN OUTPUT PULLDOWN GPIO(72)
PC5 PAYLOAD_2_EN OUTPUT PULLDOWN GPIO(73)
PC13 MAIN_PC OUTPUT PULLDOWN GPIO(74)
PC14 BAT_1_EN OUTPUT PULLDOWN GPIO(75)
PC15 BAT_2_EN OUTPUT PULLDOWN GPIO(76)
PB10 PAYLOAD_PC OUTPUT PULLDOWN GPIO(70) LOW
PB11 PAYLOAD_EN OUTPUT PULLDOWN GPIO(71) LOW
PC4 PAYLOAD_1_EN OUTPUT PULLDOWN GPIO(72) LOW
PC5 PAYLOAD_2_EN OUTPUT PULLDOWN GPIO(73) LOW
PC13 MAIN_PC OUTPUT PULLDOWN GPIO(74) LOW
PC14 BAT_1_EN OUTPUT PULLDOWN GPIO(75) LOW
PC15 BAT_2_EN OUTPUT PULLDOWN GPIO(76) LOW

# LEDs
PA1 LED_RED OUTPUT PULLDOWN GPIO(80) HIGH
PA2 LED_GREEN OUTPUT PULLDOWN GPIO(81) HIGH
PA3 LED_BLUE OUTPUT PULLDOWN GPIO(82) HIGH
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(83) # Status NTF_LED LED
PB2 LED_BOOT OUTPUT PULLDOWN GPIO(84) # Led Bootloader
PB13 LED_MAIN OUTPUT PULLDOWN GPIO(85) # Output Main LED
PB15 LED_PAYLOAD OUTPUT PULLDOWN GPIO(86) # Output Payload LED
PA1 LED_RED OUTPUT PULLDOWN GPIO(80) LOW
PA2 LED_GREEN OUTPUT PULLDOWN GPIO(81) LOW
PA3 LED_BLUE OUTPUT PULLDOWN GPIO(82) LOW
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(83) LOW # Status NTF_LED LED
PB2 LED_BOOT OUTPUT PULLDOWN GPIO(84) LOW
PB13 LED_MAIN OUTPUT PULLDOWN GPIO(85) LOW
PB15 LED_PAYLOAD OUTPUT PULLDOWN GPIO(86) LOW

# setup for "pixracer" RGB LEDs
define HAL_GPIO_A_LED_PIN 80
define HAL_GPIO_B_LED_PIN 81
define HAL_GPIO_C_LED_PIN 82
define HAL_GPIO_LED_ON 0
define HAL_GPIO_LED_ON 1
define HAL_GPIO_LED_OFF 0

define HAL_HAVE_PIXRACER_LED

Expand Down

0 comments on commit 4d6fe4f

Please sign in to comment.