From 155ccdd6e127a7e8c6533ccd2e015ee14ffc55ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Jan 2019 12:44:29 +1100 Subject: [PATCH] HAL_ChibiOS: added extra LEDs for CUAVv5 --- .../AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat index 617155c018..b0ec90cfd8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat @@ -2,3 +2,22 @@ # for CUAVv5 hardware. include ../fmuv5/hwdef.dat + +# extra LEDs, active low, used using the pixracer LED scheme +PH10 LED_R OUTPUT HIGH GPIO(0) +PH11 LED_G OUTPUT HIGH GPIO(1) +PH12 LED_B OUTPUT 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 + +