summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTinic Uro <[email protected]>2024-06-12 08:59:43 -0700
committerTinic Uro <[email protected]>2024-06-12 08:59:43 -0700
commit9be10f2adbce72262c56e1f235e58af4cc9d7e40 (patch)
treea0ccb67e5f1f94a92d2e4acd06cc83f15a3cbc20
parenta0006e6861f72b2b8873f761ea1da308ce7ad909 (diff)
Fix pin definitions.
-rw-r--r--hw/bsp/stm32u5/boards/stm32u545nucleo/board.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/bsp/stm32u5/boards/stm32u545nucleo/board.h b/hw/bsp/stm32u5/boards/stm32u545nucleo/board.h
index 6d244d418..7f3bf462c 100644
--- a/hw/bsp/stm32u5/boards/stm32u545nucleo/board.h
+++ b/hw/bsp/stm32u5/boards/stm32u545nucleo/board.h
@@ -33,22 +33,22 @@ extern "C"
#endif
// LED GREEN
-#define LED_PORT GPIOC
-#define LED_PIN GPIO_PIN_7
+#define LED_PORT GPIOA
+#define LED_PIN GPIO_PIN_5
#define LED_STATE_ON 1
// BUTTON
-#define BUTTON_PORT GPIOA
-#define BUTTON_PIN GPIO_PIN_0
+#define BUTTON_PORT GPIOC
+#define BUTTON_PIN GPIO_PIN_13
#define BUTTON_STATE_ACTIVE 1
// UART Enable for STLink VCOM
#define UART_DEV LPUART1
#define UART_CLK_EN __HAL_RCC_LPUART1_CLK_ENABLE
-#define UART_GPIO_PORT GPIOG
+#define UART_GPIO_PORT GPIOA
#define UART_GPIO_AF GPIO_AF8_LPUART1
-#define UART_TX_PIN GPIO_PIN_7
-#define UART_RX_PIN GPIO_PIN_8
+#define UART_TX_PIN GPIO_PIN_2
+#define UART_RX_PIN GPIO_PIN_3
//--------------------------------------------------------------------+
// RCC Clock