mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed LEDs on new CUAVv5 revision
# Conflicts: # libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat
This commit is contained in:
parent
f167b65b1f
commit
9f26ae5e8c
|
@ -6,3 +6,20 @@ include ../fmuv5/hwdef.dat
|
||||||
# use default IO firmware on CUAVv5
|
# use default IO firmware on CUAVv5
|
||||||
ROMFS io_firmware.bin Tools/IO_Firmware/fmuv2_IO.bin
|
ROMFS io_firmware.bin Tools/IO_Firmware/fmuv2_IO.bin
|
||||||
|
|
||||||
|
# extra LEDs, active low, used using the pixracer LED scheme
|
||||||
|
PH10 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
|
||||||
|
PH11 LED_G1 OUTPUT OPENDRAIN HIGH GPIO(1)
|
||||||
|
PH12 LED_B1 OUTPUT OPENDRAIN HIGH GPIO(2)
|
||||||
|
|
||||||
|
undef HAL_GPIO_A_LED_PIN
|
||||||
|
undef HAL_GPIO_B_LED_PIN
|
||||||
|
|
||||||
|
define HAL_GPIO_A_LED_PIN 0
|
||||||
|
define HAL_GPIO_B_LED_PIN 1
|
||||||
|
define HAL_GPIO_C_LED_PIN 2
|
||||||
|
|
||||||
|
define HAL_GPIO_LED_ON 0
|
||||||
|
define HAL_GPIO_LED_OFF 1
|
||||||
|
|
||||||
|
define HAL_HAVE_PIXRACER_LED
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue