From 9faa6b1d7a64ede2f999042623f3822c817a664b Mon Sep 17 00:00:00 2001 From: tanek liang Date: Fri, 2 Feb 2018 10:39:40 +0800 Subject: [PATCH] [bsp] fix uart driver bug --- bsp/imxrt1052-evk/drivers/usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/imxrt1052-evk/drivers/usart.c b/bsp/imxrt1052-evk/drivers/usart.c index 934a1ee8c..2c026c0a4 100644 --- a/bsp/imxrt1052-evk/drivers/usart.c +++ b/bsp/imxrt1052-evk/drivers/usart.c @@ -230,10 +230,10 @@ static rt_err_t imxrt_configure(struct rt_serial_device *serial, struct serial_c switch (cfg->stop_bits) { case STOP_BITS_2: - config.stopBitCount = kLPUART_OneStopBit; + config.stopBitCount = kLPUART_TwoStopBit; break; default: - config.stopBitCount = kLPUART_TwoStopBit; + config.stopBitCount = kLPUART_OneStopBit; break; }