4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 07:13:30 +08:00

[bsp] fix uart driver bug

This commit is contained in:
tanek liang 2018-02-02 10:39:40 +08:00
parent a2f20dde4c
commit 9faa6b1d7a

View File

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