From 5f70f974d5d8a32a965b3ed0ade7897d92df40f4 Mon Sep 17 00:00:00 2001 From: Rbb666 Date: Wed, 3 Jul 2024 14:05:09 +0800 Subject: [PATCH] [bsp][stm32]Increase the serial_v1 tx timeout. --- bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c index 8aba3ca9cb..5c41bf2841 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c +++ b/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c @@ -35,7 +35,7 @@ static void stm32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag); #endif /* Number of while blocking timeouts for the stm32_putc */ -#define TX_BLOCK_TIMEOUT 1000 +#define TX_BLOCK_TIMEOUT 2000 enum { @@ -341,8 +341,6 @@ static rt_err_t stm32_control(struct rt_serial_device *serial, int cmd, void *ar return RT_EOK; } - - static int stm32_putc(struct rt_serial_device *serial, char c) { struct stm32_uart *uart;