From 88c1521b5ed28f75c782357538986499b124a60d Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 23 Jun 2017 10:32:31 -1000 Subject: [PATCH] px4fmu-v5:Status LED's are driven open drain Allows Anaode of LEDs to be tied to V5 or V3.3 --- src/drivers/boards/px4fmu-v5/board_config.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drivers/boards/px4fmu-v5/board_config.h b/src/drivers/boards/px4fmu-v5/board_config.h index e4a3c733d1..cb8c4d56dd 100644 --- a/src/drivers/boards/px4fmu-v5/board_config.h +++ b/src/drivers/boards/px4fmu-v5/board_config.h @@ -60,10 +60,12 @@ __BEGIN_DECLS /* Configuration ************************************************************************************/ /* PX4FMU GPIOs ***********************************************************************************/ -/* LEDs */ -#define GPIO_LED1 /* PB1 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN1) -#define GPIO_LED2 /* PC6 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN6) -#define GPIO_LED3 /* PC7 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN7) + +/* LEDs are driven with push open drain to support Anode to 5V or 3.3V */ + +#define GPIO_LED1 /* PB1 */ (GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN1) +#define GPIO_LED2 /* PC6 */ (GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN6) +#define GPIO_LED3 /* PC7 */ (GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN7) #define GPIO_nLED_RED GPIO_LED1 #define GPIO_nLED_GREEN GPIO_LED2