Browse Source

[BSP] fix uart driver bug. | 修复串口驱动BUG.

liuguang 7 years ago
parent
commit
0dd4854dc7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      bsp/imxrt1052-evk/drivers/usart.c
  2. 1 1
      bsp/imxrt1052-evk/drivers/usart.h

+ 2 - 2
bsp/imxrt1052-evk/drivers/usart.c

@@ -18,7 +18,7 @@
 #include "fsl_lpuart.h"
 #include "fsl_iomuxc.h"
 
-#ifdef RT_USING_UART
+#ifdef RT_USING_SERIAL
 
 #if !defined(RT_USING_UART0) && !defined(RT_USING_UART1) && \
     !defined(RT_USING_UART2) && !defined(RT_USING_UART3) && \
@@ -380,4 +380,4 @@ int imxrt_hw_usart_init(void)
 }
 INIT_BOARD_EXPORT(imxrt_hw_usart_init);
 
-#endif /*RT_USING_UART*/
+#endif /*RT_USING_SERIAL */

+ 1 - 1
bsp/imxrt1052-evk/drivers/usart.h

@@ -9,7 +9,7 @@
  *
  * Change Logs:
  * Date           Author       Notes
- * 2013-11-15     bright       the first version
+ * 2017-10-10     Tanek        the first version
  */
 
 #ifndef __USART_H__