From b9f43068afcde27ff7d65c2f2f8f7abc93c6ab99 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 23 Jun 2017 12:14:44 -1000 Subject: [PATCH] px4fmu-v5:Define the existance of the UI PWM LED and it's polarity Per https://docs.google.com/spreadsheets/d/1-n0__BYDedQrc_2NHqBenG1DNepAgnHpSGglke-QQwY/edit#gid=730959725 Usage of the PWM UI led is optional and if used it's polaity may be set ot Active low or high. --- src/drivers/boards/px4fmu-v5/board_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/boards/px4fmu-v5/board_config.h b/src/drivers/boards/px4fmu-v5/board_config.h index 60bb6f8364..30871cbb59 100644 --- a/src/drivers/boards/px4fmu-v5/board_config.h +++ b/src/drivers/boards/px4fmu-v5/board_config.h @@ -320,6 +320,8 @@ __BEGIN_DECLS #define LED_TIM3_CH2OUT /* PC7 T3C2 BLUE */ GPIO_TIM3_CH2OUT_3 #define LED_TIM3_CH4OUT /* PB1 T3C4 RED */ GPIO_TIM3_CH4OUT_1 +#define BOARD_HAS_UILED_PWM +#undef BOARD_UILED_PWM_DRIVE_ACTIVE_LOW #define LED_TIM5_CH1OUT /* PH10 T5C1 RED */ GPIO_TIM5_CH1OUT_2 #define LED_TIM5_CH2OUT /* PH11 T5C2 GREEN */ GPIO_TIM5_CH2OUT_2 #define LED_TIM5_CH3OUT /* PH12 T5C3 BLUE */ GPIO_TIM5_CH3OUT_2