summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-11-03 23:51:03 +0800
committerBernard Xiong <[email protected]>2014-11-03 23:51:03 +0800
commit086b87f23f716e4d7442545a4ff5c13f0ae05a27 (patch)
tree13aac06b667372593f29eb6c98ef63e52c989458
parent566cff0ff5174d4ec4ef79631521c5c275e25322 (diff)
parentd5332e2799679dd3612303226d2fe206a33f9503 (diff)
Merge pull request #371 from nongxiaoming/master
bsp:fix the bug of lpc43xx uart interrupt enable in driver initialize.
-rw-r--r--bsp/lpc43xx/drivers/drv_uart.c5
-rw-r--r--bsp/xplorer4330/drivers/drv_uart.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/bsp/lpc43xx/drivers/drv_uart.c b/bsp/lpc43xx/drivers/drv_uart.c
index 58a385b8b1..9c1f0ada8c 100644
--- a/bsp/lpc43xx/drivers/drv_uart.c
+++ b/bsp/lpc43xx/drivers/drv_uart.c
@@ -244,8 +244,6 @@ void rt_hw_uart_init(void)
LPC_USART0->DLM = 0x00;
LPC_USART0->FDR = 0xC1;
LPC_USART0->LCR = 0x03; /* DLAB = 0 */
- /* enable the receive interrupt */
- LPC_USART0->IER |= UART_IER_RBRINT_EN;
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(uart->USART_IRQn, ((0x01 << 3) | 0x01));
@@ -297,8 +295,7 @@ void rt_hw_uart_init(void)
LPC_USART2->DLM = 0x00;
LPC_USART2->FDR = 0xC1;
LPC_USART2->LCR = 0x03; /* DLAB = 0 */
- /* enable the receive interrupt */
- LPC_USART2->IER |= UART_IER_RBRINT_EN;
+
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(uart->USART_IRQn, ((0x01 << 3) | 0x01));
diff --git a/bsp/xplorer4330/drivers/drv_uart.c b/bsp/xplorer4330/drivers/drv_uart.c
index 4fa489ea06..48b80ba555 100644
--- a/bsp/xplorer4330/drivers/drv_uart.c
+++ b/bsp/xplorer4330/drivers/drv_uart.c
@@ -244,8 +244,7 @@ void rt_hw_uart_init(void)
LPC_USART0->DLM = 0x00;
LPC_USART0->FDR = 0xC1;
LPC_USART0->LCR = 0x03; /* DLAB = 0 */
- /* enable the receive interrupt */
- LPC_USART0->IER |= UART_IER_RBRINT_EN;
+
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(uart->USART_IRQn, ((0x01 << 3) | 0x01));
@@ -297,8 +296,6 @@ void rt_hw_uart_init(void)
LPC_USART2->DLM = 0x00;
LPC_USART2->FDR = 0xC1;
LPC_USART2->LCR = 0x03; /* DLAB = 0 */
- /* enable the receive interrupt */
- LPC_USART2->IER |= UART_IER_RBRINT_EN;
/* preemption = 1, sub-priority = 1 */
NVIC_SetPriority(uart->USART_IRQn, ((0x01 << 3) | 0x01));