diff --git a/bsp/lpc43xx/drivers/drv_uart.c b/bsp/lpc43xx/drivers/drv_uart.c index 58a385b8b1c56aeb6cf80be6ca0fddcace37fab9..9c1f0ada8c97bf0dc4db0fa9416e28af4e63537c 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 4fa489ea060e20686d5004a80bdb3c3ecb533e16..48b80ba5554f79fa2ee96207c3da47697a75dd6a 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));