Skip to content

Commit 2f0fa58

Browse files
committed
Add missing switches for UART emulation
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 2c40123 commit 2f0fa58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/stm32/hal_uart_emul.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#ifndef __HAL_UART_EMUL_H
4141
#define __HAL_UART_EMUL_H
4242

43-
#if defined(TIM1_BASE)
43+
#if defined(TIM1_BASE) && defined(UART_EMUL_RX) && defined(UART_EMUL_TX)
4444
#ifdef __cplusplus
4545
extern "C" {
4646
#endif

0 commit comments

Comments
 (0)