Ver Fonte

Merge pull request #1204 from TanekLiang/i.mx_rt_1052

[bsp] fix uart driver bug
Bernard Xiong há 7 anos atrás
pai
commit
9d59b30c21
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      bsp/imxrt1052-evk/drivers/usart.c

+ 2 - 2
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;
     }