Skip to content

Commit 4de26b1

Browse files
fpistmfronders
authored andcommitted
chore(serial): allows TX_TIMEOUT redefinition
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 2d64d31 commit 4de26b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/stm32/uart.h

+2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ struct serial_s {
8686
};
8787

8888
/* Exported constants --------------------------------------------------------*/
89+
#ifndef TX_TIMEOUT
8990
#define TX_TIMEOUT 1000
91+
#endif
9092

9193
#if !defined(RCC_USART1CLKSOURCE_HSI)
9294
/* Some series like C0 have 2 derivated clock from HSI: HSIKER (for peripherals)

0 commit comments

Comments
 (0)