From 640db6bdbdde58abec9348a834e1a575d3cd5ee7 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 24 Sep 2014 11:01:07 +0800 Subject: [PATCH] [BSP] change UART flag when register device driver. --- bsp/stm32f40x/drivers/usart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm32f40x/drivers/usart.c b/bsp/stm32f40x/drivers/usart.c index 8b87dbbb1..89d9ca3dd 100644 --- a/bsp/stm32f40x/drivers/usart.c +++ b/bsp/stm32f40x/drivers/usart.c @@ -344,7 +344,7 @@ void rt_hw_usart_init() /* register uart1 */ rt_hw_serial_register(&uart1_device, "uart1", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, &uart1); /* enable interrupt */ @@ -362,7 +362,7 @@ void rt_hw_usart_init() /* register uart2 */ rt_hw_serial_register(&uart2_device, "uart2", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, &uart2); /* Enable USART2 DMA Rx request */ @@ -403,7 +403,7 @@ void rt_hw_usart_init() /* register uart6 */ rt_hw_serial_register(&uart6_device, "uart6", - RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_STREAM, + RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX, &uart6); #endif }