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;