浏览代码

[bsp][stm32]Increase the serial_v1 tx timeout.

Rbb666 10 月之前
父节点
当前提交
5f70f974d5
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c

+ 1 - 3
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;