HAL_ChibiOS: fixed LEDs on CUAVv5Nano

need to be opendrain
This commit is contained in:
Andrew Tridgell 2019-05-03 13:57:57 +10:00
parent 376031c5f4
commit c51b433c28

View File

@ -55,9 +55,10 @@ PE12 LED_SAFETY OUTPUT
PE10 SAFETY_IN INPUT PULLDOWN
# 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)
# must be opendrain as supply for LEDs is 5V
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