summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuguang <[email protected]>2018-03-16 17:22:55 +0800
committerliuguang <[email protected]>2018-03-16 17:22:55 +0800
commit0dd4854dc795faf020463f99f08524a099277fe0 (patch)
treefa16af2240958aa5b744e8b276f8465df2430278
parent5a2df50edd29916213064b2463bbc08a668af5d1 (diff)
[BSP] fix uart driver bug. | 修复串口驱动BUG.
-rw-r--r--bsp/imxrt1052-evk/drivers/usart.c4
-rw-r--r--bsp/imxrt1052-evk/drivers/usart.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/bsp/imxrt1052-evk/drivers/usart.c b/bsp/imxrt1052-evk/drivers/usart.c
index 68c0f500ee..65a480a199 100644
--- a/bsp/imxrt1052-evk/drivers/usart.c
+++ b/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 */
diff --git a/bsp/imxrt1052-evk/drivers/usart.h b/bsp/imxrt1052-evk/drivers/usart.h
index abd7631fee..5cc02fb430 100644
--- a/bsp/imxrt1052-evk/drivers/usart.h
+++ b/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__