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

This commit is contained in:
Rbb666 2024-07-03 14:05:09 +08:00 committed by Meco Man
parent 017c31a062
commit 5f70f974d5
1 changed files with 1 additions and 3 deletions

View File

@ -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;