From d1d4237ac76323e56b605d3df2570f69d5df0b61 Mon Sep 17 00:00:00 2001 From: Max Kriegleder Date: Sat, 1 May 2021 23:55:41 +0200 Subject: [PATCH] boards/nucleo-h743zi2: Fixed pin and color of board LED LD2 --- boards/arm/stm32h7/nucleo-h743zi2/src/nucleo-h743zi2.h | 8 ++++---- boards/arm/stm32h7/nucleo-h743zi2/src/stm32_autoleds.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/nucleo-h743zi2.h b/boards/arm/stm32h7/nucleo-h743zi2/src/nucleo-h743zi2.h index 55c22ca13d..28ea554d8f 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/nucleo-h743zi2.h +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/nucleo-h743zi2.h @@ -78,13 +78,13 @@ #define GPIO_LD1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ GPIO_OUTPUT_CLEAR | GPIO_PORTB | GPIO_PIN0) #define GPIO_LD2 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ - GPIO_OUTPUT_CLEAR | GPIO_PORTB | GPIO_PIN7) + GPIO_OUTPUT_CLEAR | GPIO_PORTE | GPIO_PIN1) #define GPIO_LD3 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ GPIO_OUTPUT_CLEAR | GPIO_PORTB | GPIO_PIN14) -#define GPIO_LED_GREEN GPIO_LD1 -#define GPIO_LED_BLUE GPIO_LD2 -#define GPIO_LED_RED GPIO_LD3 +#define GPIO_LED_GREEN GPIO_LD1 +#define GPIO_LED_ORANGE GPIO_LD2 +#define GPIO_LED_RED GPIO_LD3 #define GPIO_OTGFS_VBUS (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_100MHz| \ GPIO_OPENDRAIN|GPIO_PORTA|GPIO_PIN9) diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_autoleds.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_autoleds.c index 4105716060..db26e84ef5 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_autoleds.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_autoleds.c @@ -50,7 +50,7 @@ static const uint32_t g_ledmap[BOARD_NLEDS] = { GPIO_LED_GREEN, - GPIO_LED_BLUE, + GPIO_LED_ORANGE, GPIO_LED_RED, };