Skip to content

Commit 55fa0df

Browse files
committed
[U(S)ART] Update SERIAL_UART_INSTANCE for LPUART1
This will introduce LPUART2 management. Kept 0 for backward compatibility. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 98dd715 commit 55fa0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/WSerial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_MODULE_ONLY)
4242
#if !defined(HWSERIAL_NONE) && defined(SERIAL_UART_INSTANCE)
43-
#if SERIAL_UART_INSTANCE == 0
43+
#if SERIAL_UART_INSTANCE == 0 || SERIAL_UART_INSTANCE == 101
4444
#define ENABLE_HWSERIALLP1
4545
#if !defined(Serial)
4646
#define Serial SerialLP1

0 commit comments

Comments
 (0)