Add LPUART1 definition to usart.h for stm32g4x

Add LPUART1 definition for the STM32G4xx LPUART. It is possible to use LPUART1_BASE, but without the LPUART1 definition, usart_set_baudrate will calculate BRR incorrectly and the UART will not work due to an ifdef.
Tested and working @ 115200 on a NUCLEO-G474RE.
This commit is contained in:
blutack
2025-04-01 12:51:44 +01:00
committed by Piotr Esden-Tempski
parent dc3f9cbcbd
commit 6778da3659

View File

@@ -43,6 +43,7 @@
#define USART3 USART3_BASE
#define UART4 UART4_BASE
#define UART5 UART5_BASE
#define LPUART1 LPUART1_BASE
/**@}*/
BEGIN_DECLS